[Xapian-discuss] xapian-tcpsrv very slow
Olly Betts
olly at survex.com
Wed Feb 8 19:02:02 GMT 2006
On Wed, Feb 08, 2006 at 03:15:36PM +0000, Roger Fishwick wrote:
> I have been looking at xapian for a project and have so far been very
> impressed. I have hit one major problem the final architecture requires
> that the web server be a deferent machine from the server that xapian is
> installed on. With my test code using local database ($db_path =
> "/var/xapain_db/default"; $db = new_database($db_path);) a query takes
> around 0.012 seconds on the same machine with the connection changed to use
> tcp ($db = remote_open('127.0.0.1',3055);) the same query takes 129 seconds
> or times out.
I'd expect some overhead from the remote link, but not that much. And
you're using loopback so it's not a slow network.
The webtop guys used xapian-tcpsrv to search 500 million documents with
sub-second query times, and that involved a real network (albeit a
fast one). It's possible something has changed in the code which
is causing a problem now though. Nobody's using it heavily that I'm
aware of.
Hmm, are you using Omega here? If so, did you disable $topterms from
the query template?
> Any ideas would be well received.
An alternative approach is to run Omega on the xapian machine searching
databases locally, and use the xml template (or something similar) to
return XML results which the web server machine reads and formats for
display.
> While I think of it socketserver.cc is missing include of iostream if
> TIMING_PATCH is defined.
Thanks, I'll add it.
Cheers,
Olly
More information about the Xapian-discuss
mailing list