#75 closed defect (released)
simpleindex.php unecessarily slow
Reported by: | alec | Owned by: | Olly Betts |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Xapian-bindings | Version: | 0.9.4 |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Operating System: | All |
Description
the simpleindex.php example flushes the database after EACH bit paragraph addition to the index. this makes the script take a very long time to index a small piece of data.
instead the flush should happen at the end of the script, speeds things up a few thousand %.
diff-file: 93d92 < WritableDatabase_flush($database); 101a101
WritableDatabase_flush($database);
Note:
See TracTickets
for help on using tickets.
Actually, there's no need to explicitly flush at all.
Thanks for your report. This is now fixed in SVN.