Re: [Tracker] Search doesn't return anything while content being indexed
- From: "Ivan Frade" <ivan frade gmail com>
- To: "Jimmy Huang" <jimmy huang linux intel com>
- Cc: Tracker-List <tracker-list gnome org>
- Subject: Re: [Tracker] Search doesn't return anything while content being indexed
- Date: Wed, 30 Jul 2008 06:02:45 +0300
Hi Jimmy
On Tue, Jul 29, 2008 at 10:51 PM, Jimmy Huang
<jimmy huang linux intel com> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]