Re: [Tracker] Queueing sparql requests



On 30/03/11 16:44, Lionel Landwerlin wrote:
Hi all,

Hi,

I'm using tracker from an application to browse/search media files.
To support live update when searching/browsing I'm using some kind of
live model. Adding a lot of files in a short period of time leads to
lots of sparql request to maintain the models up to date and that kind
of break the whole thing because at some point :
         * when using the direct backend, I end up with sqlite errors
         telling me that the database is corrupted
         * when using the bus backend, I end up not being able to open
         file descriptors anymore because the per process limit has been
         reached

So to work around the first and then the second issue, I'm about to
write some "private" (as not in tracker) queueing API on top of
libtracker-sparql.

This shouldn't be necessary.

I'm pretty sure other people might be interested by such a feature/api.
Is there any plan to add such thing to tracker ?

Carlos recently did this with tracker-needle after I noticed it needs the same thing. He ended up writing a model for tracker-needle. It works quite well.

You can see this in master and it will be in 0.10.6 released tomorrow.

The code is available here:

  http://git.gnome.org/browse/tracker/tree/src/tracker-needle

--
Regards,
Martyn



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