pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua Kramer <josh@bitbuckets.com>
To: pgsql-performance@postgresql.org
Subject: TSearch2 vs. Apache Lucene
Date: Tue, 6 Dec 2005 11:47:44 -0500 (EST)
Message-ID: <Pine.LNX.4.63.0512061143170.5133@localhost.localdomain> (raw)


Greetings all,

I'm going to do a performance comparison with DocMgr and PG81/TSearch2 on 
one end, and Apache Lucene on the other end.

In order to do this, I'm going to create a derivative of the 
docmgr-autoimport script so that I can specify one file to import at a 
time.  I'll then create a Perl script which logs all details (such as 
timing, etc.) as the test progresses.

As test data, I have approximately 9,000 text files from Project Gutenberg 
ranging in size from a few hundred bytes to 4.5M.

I plan to test the speed of import of each file.  Then, I plan to write a 
web-robot in Perl that will test the speed and number of results returned.

Can anyone think of a validation of this test, or how I should configure 
PG to maximise import and search speed?  Can I maximise search speed and 
import speed, or are those things mutually exclusive?  (Note that this 
will be run on limited hardware - 900MHz Athlon with 512M of ram)

Has anyone ever compared TSearch2 to Lucene, as far as performance is 
concerned?

Thanks,
-Josh



view thread (12+ messages)  latest in thread

Message-ID: <Pine.LNX.4.63.0512061143170.5133@localhost.localdomain>
Permalink:  ../Pine.LNX.4.63.0512061143170.5133@localhost.localdomain/
Also on:    postgresql.org/message-id/Pine.LNX.4.63.0512061143170.5133@localhost.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: josh@bitbuckets.com
  Subject: Re: TSearch2 vs. Apache Lucene
  In-Reply-To: <Pine.LNX.4.63.0512061143170.5133@localhost.localdomain>
  References: <Pine.LNX.4.63.0512061143170.5133@localhost.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox