Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#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);

Change History (2)

comment:1 by Olly Betts, 19 years ago

Resolution: fixed
Status: newclosed

Actually, there's no need to explicitly flush at all.

Thanks for your report. This is now fixed in SVN.

comment:2 by Olly Betts, 19 years ago

Operating System: All
Resolution: fixedreleased

Fixed in 0.9.5

Note: See TracTickets for help on using tickets.