Re: [Tracker] GraphUpdated signal



Hi,


On Wed, Feb 22, 2012 at 6:23 PM, Putinei Ionut <putineiionut gmail com> wrote:
Hello,

for a usb stick with 3000 tracks i get lot of GraphUpdated signals.....on
about 3 ontologies.(~490 signal)


Is there any reason for the decision to generate this signal so often?

 First of all, you should subscribe only to signals in the class that
you are really interested (using the arg0 parameter). Subscribing to
all signals is inefficient for your application and for the system in
general.

 The main purpose of that signal is to update the UI on the client
side. It means that it should be very quick notifying changes, but at
the same time it must batch changes when they are too frequent to
avoid too much noise. That a process updates the name of a contact is
a small change that we want to propagate asap. Indexing a USB stick is
something that we want to notify "quickly" (so the user knows there is
something going on) but not too frequently (reordering the list of
songs per each single new file is an abuse and a big load in the
system).

 Note that you receive only 490 signals (probably less if you choose 1
class) for 3000 tracks (easily >30000 triplets). Not so bad.

 Regards,

Ivan


Thanks,
Ionut

_______________________________________________
tracker-list mailing list
tracker-list gnome org
http://mail.gnome.org/mailman/listinfo/tracker-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]