[Xapian-discuss] Large database problem
Henry C.
henka at cityweb.co.za
Thu Oct 21 07:58:51 BST 2010
On Thu, October 21, 2010 06:47, ³Ì³Ï wrote:
> Hi!
> 2,000,000 document in database and 200,000 document be queried£¬It takes
> about 4 seconds first time,and next time takes less than 0.5 second for the
> same query.Please explain it for me ? What method can shorten the time of the
> first queries? Thanks£¡
The first time xapian has to read from disk, which is slow.
The second time data is cached in RAM, which is faster.
This is common across all applications.
Regards
Henry
More information about the Xapian-discuss
mailing list