On Wed, 2008-07-30 at 06:02 +0300, Ivan Frade wrote:
> Hi Jimmy
> 
> On Tue, Jul 29, 2008 at 10:51 PM, Jimmy Huang
> <[EMAIL PROTECTED]> wrote:
> > I noticed that search does not return any results while the system is
> > being indexed  (The search util came with tracker).  Is the SQLite
> > database being locked during indexing?  I was expecting that I can
> > search the content that has been indexed so far by the system.
> 
>  I don't remember in the "old" version, in the new one
> (indexer-split), when the daemon is searching the indexer stops
> commits all pending changes into the DB. So yes, you can search the
> content indexed at that point.
> 
> > If SQLite supports multi-reader/single writer architechure, if I extend
> > trackerd or write my own client that tries to have read only access the
> > SQLite database while it is being indexed, is there any issues?
> 
>  Try to avoid the direct access to the DB. Take into account that
> quite soon the DB schema can change. If you still want to do it, you
> need to pause tracker-indexer (it has a dbus method for that) before
> reading and close everything properly so it can continues after your
> queries.
> 
> Regards,
> 
> Ivan

Ivan,

I just checked-out the latest indexer-split branch, compiled and
installed it.  It doesn't behave the way you described.  I have some
10,000 images in my home directory to be indexed, I did a re-index and
it takes around 10 mins or so to perform the indexing.  While it is
being indexed, if I do a search either using the tracker-search-tool or
the commandline tracker-search to search for the term "image" or "jpg",
it won't return anything.  The tracker stats in the applet gets updated
for # of files and folders during indexing, and I can see how many
images gets indexed.  But until it finishes indexing all those contents.
I can't search any of those.

So somehow it is not pausing the indexer and return the search and then
continue indexing as you described.  How do I make this work?  Thanks.

Jimmy

_______________________________________________
tracker-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/tracker-list

Reply via email to