<div dir="ltr"><div><div>Hey David<br><br></div>This is normal. Some one is asking for the changes, and that is why the all those dbus signals are being emitted. We only emit these changed/added/removed signals if someone requests them. One generally requests these changes by using the Nepomuk2::ResourceWatcher. Additionally, the Nepomuk2::Resource class internally also uses the ResourceWatcher to keep its cache up to date.<br>
<br></div>Would you prefer we not use dbus for this?<br><div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jan 13, 2013 at 3:19 PM, David Faure <span dir="ltr"><<a href="mailto:faure@kde.org" target="_blank">faure@kde.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please run `dbus-monitor` on a KDE system now and then, to see all the DBus<br>
communication coming out of nepomuk (I suppose this is especially happening<br>
now because the akonadi_nepomuk_feeder agent is indexing all the existing email).<br>
<br>
I see this, in particular: for every property, propertyAdded is emitted, followed by propertyChanged.<br>
Surely a single signal could be used for this?<br>
<br>
signal sender=:1.3181 -> dest=(null destination) serial=7023161 path=/resourcewatcher/watch27069; interface=org.kde.nepomuk.ResourceWatcherConnection; member=propertyAdded<br>
   string "nepomuk:/res/4efdbd00-0b8a-44fe-bc8a-061966bdb2d9"<br>
   string "<a href="http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#isRead" target="_blank">http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#isRead</a>"<br>
   array [<br>
      variant          boolean false<br>
   ]<br>
signal sender=:1.3181 -> dest=(null destination) serial=7023162 path=/resourcewatcher/watch27069; interface=org.kde.nepomuk.ResourceWatcherConnection; member=propertyChanged<br>
   string "nepomuk:/res/4efdbd00-0b8a-44fe-bc8a-061966bdb2d9"<br>
   string "<a href="http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#isRead" target="_blank">http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#isRead</a>"<br>
   array [<br>
      variant          boolean false<br>
   ]<br>
   array [<br>
   ]<br>
<br>
Another example, to show it's not related to "isRead":<br>
<br>
signal sender=:1.3181 -> dest=(null destination) serial=7023137 path=/resourcewatcher/watch27069; interface=org.kde.nepomuk.ResourceWatcherConnection; member=propertyAdded<br>
   string "nepomuk:/res/4efdbd00-0b8a-44fe-bc8a-061966bdb2d9"<br>
   string "<a href="http://www.semanticdesktop.org/ontologies/2007/08/15/nao#prefSymbol" target="_blank">http://www.semanticdesktop.org/ontologies/2007/08/15/nao#prefSymbol</a>"<br>
   array [<br>
      variant          string "nepomuk:/res/f36a5df4-7000-4678-9c71-1644ab76da00"<br>
   ]<br>
signal sender=:1.3181 -> dest=(null destination) serial=7023138 path=/resourcewatcher/watch27069; interface=org.kde.nepomuk.ResourceWatcherConnection; member=propertyChanged<br>
   string "nepomuk:/res/4efdbd00-0b8a-44fe-bc8a-061966bdb2d9"<br>
   string "<a href="http://www.semanticdesktop.org/ontologies/2007/08/15/nao#prefSymbol" target="_blank">http://www.semanticdesktop.org/ontologies/2007/08/15/nao#prefSymbol</a>"<br>
   array [<br>
      variant          string "nepomuk:/res/f36a5df4-7000-4678-9c71-1644ab76da00"<br>
   ]<br>
   array [<br>
   ]<br>
<br>
For #prefLabel I even saw the nepomukstorage process emit propertyAdded+propertyChanged 6 times in a row,<br>
for the same resource, with the same label.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
David Faure, <a href="mailto:faure@kde.org">faure@kde.org</a>, <a href="http://www.davidfaure.fr" target="_blank">http://www.davidfaure.fr</a><br>
Working on KDE, in particular KDE Frameworks 5<br>
<br>
_______________________________________________<br>
Nepomuk mailing list<br>
<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/nepomuk" target="_blank">https://mail.kde.org/mailman/listinfo/nepomuk</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><span style="color:rgb(192,192,192)">Vishesh Handa</span><br>
</div></div></div></div></div>