[Xapian-discuss] PHP Bindings - very slow iteration

Olly Betts olly at survex.com
Wed Oct 14 23:27:43 BST 2009


On Wed, Oct 14, 2009 at 11:03:26AM +0300, Matei Pavel wrote:
> I'm using the latest Xapian release and PHP bindings and I only have about
> 40.000 indexed documents, yet when i loop through the results and getting
> each result document with get_document(), it takes a really long time.
> 
> For example, a query that only returns 2-300 results takes about 2.1 seconds
> to complete the loop.

It would be useful if you could show us a complete example PHP script which
exhibits this behaviour.

> Is there anything I can do to speed this up?

Profile to find where the time is spent.  For some tips see:

http://trac.xapian.org/wiki/ProfilingXapian

Cheers,
    Olly



More information about the Xapian-discuss mailing list