pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Text Search vs MYSQL vs Lucene
6+ messages / 5 participants
[nested] [flat]

* Text Search vs MYSQL vs Lucene
@ 2004-09-09 12:56 Vic Cekvenich <vic.cekvenich@portalvu.com>
  2004-09-09 13:39 ` Re: Text Search vs MYSQL vs Lucene Shridhar Daithankar <shridhar@frodo.hserus.net>
  2004-09-09 14:20 ` Re: Text Search vs MYSQL vs Lucene Steve Atkins <steve@blighty.com>
  0 siblings, 2 replies; 6+ messages in thread

From: Vic Cekvenich @ 2004-09-09 12:56 UTC (permalink / raw)
  To: pgsql-general@postgresql.org

What would be performance of pgSQL text search vs MySQL vs Lucene (flat 
file) for a 2 terabyte db?
thanks for any comments.
.V
-- 
Please post on Rich Internet Applications User Interface (RiA/SoA) 
<http://www.portalvu.com;



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Text Search vs MYSQL vs Lucene
  2004-09-09 12:56 Text Search vs MYSQL vs Lucene Vic Cekvenich <vic.cekvenich@portalvu.com>
@ 2004-09-09 13:39 ` Shridhar Daithankar <shridhar@frodo.hserus.net>
  2004-09-09 14:14   ` Re: Text Search vs MYSQL vs Lucene Vic Cekvenich <vic.cekvenich@portalvu.com>
  1 sibling, 1 reply; 6+ messages in thread

From: Shridhar Daithankar @ 2004-09-09 13:39 UTC (permalink / raw)
  To: vic.cekvenich@portalvu.com; +Cc: pgsql-general@postgresql.org; pgsql-performance

On Thursday 09 Sep 2004 6:26 pm, Vic Cekvenich wrote:
> What would be performance of pgSQL text search vs MySQL vs Lucene (flat
> file) for a 2 terabyte db?

Well, it depends upon lot of factors. There are few questions to be asked 
here..
- What is your hardware and OS configuration?
- What type of data you are dealing with? Mostly static or frequently updated?
- What type of query you are doing. Aggregates or table scan or selective 
retreival etc.

Unfortunately there is no one good answer. If you could provide details, it 
would help a lot..

 Shridhar



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Text Search vs MYSQL vs Lucene
  2004-09-09 12:56 Text Search vs MYSQL vs Lucene Vic Cekvenich <vic.cekvenich@portalvu.com>
  2004-09-09 13:39 ` Re: Text Search vs MYSQL vs Lucene Shridhar Daithankar <shridhar@frodo.hserus.net>
@ 2004-09-09 14:14   ` Vic Cekvenich <vic.cekvenich@portalvu.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Vic Cekvenich @ 2004-09-09 14:14 UTC (permalink / raw)
  To: pgsql-general@postgresql.org

It be at least dual opteron 64 w 4 gigs of ram runing fedora with a huge 
raid striped drives as single volume.
A similar system and types of querries would be this:
http://marc.theaimsgroup.com

So I guess a table scan.


.V

Shridhar Daithankar wrote:

>On Thursday 09 Sep 2004 6:26 pm, Vic Cekvenich wrote:
>  
>
>>What would be performance of pgSQL text search vs MySQL vs Lucene (flat
>>file) for a 2 terabyte db?
>>    
>>
>
>Well, it depends upon lot of factors. There are few questions to be asked 
>here..
>- What is your hardware and OS configuration?
>- What type of data you are dealing with? Mostly static or frequently updated?
>- What type of query you are doing. Aggregates or table scan or selective 
>retreival etc.
>
>Unfortunately there is no one good answer. If you could provide details, it 
>would help a lot..
>
> Shridhar
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: you can get off all lists at once with the unregister command
>    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
>
>  
>


-- 
Please post on Rich Internet Applications User Interface (RiA/SoA) 
<http://www.portalvu.com;



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Text Search vs MYSQL vs Lucene
  2004-09-09 12:56 Text Search vs MYSQL vs Lucene Vic Cekvenich <vic.cekvenich@portalvu.com>
@ 2004-09-09 14:20 ` Steve Atkins <steve@blighty.com>
  2004-09-09 15:33   ` Re: Text Search vs MYSQL vs Lucene David Garamond <lists@zara.6.isreserved.com>
  2004-09-09 17:56   ` Re: Text Search vs MYSQL vs Lucene Oleg Bartunov <oleg@sai.msu.su>
  1 sibling, 2 replies; 6+ messages in thread

From: Steve Atkins @ 2004-09-09 14:20 UTC (permalink / raw)
  To: pgsql-general@postgresql.org

On Thu, Sep 09, 2004 at 07:56:20AM -0500, Vic Cekvenich wrote:

> What would be performance of pgSQL text search vs MySQL vs Lucene (flat 
> file) for a 2 terabyte db?
> thanks for any comments.

My experience with tsearch2 has been that indexing even moderately
large chunks of data is too slow to be feasible. Moderately large
meaning tens of megabytes.

Your milage might well vary, but I wouldn't rely on postgresql full
text search of that much data being functional, let alone fast enough
to be useful. Test before making any decisions.

If it's a static or moderately static text corpus you're probably
better using a traditional FTS system anyway (tsearch2 has two
advantages - tight integration with pgsql and good support for
incremental indexing).

Two terabytes is a lot of data. I'd suggest you do some research on
FTS algorithms rather than just picking one of the off-the-shelf FTS
systems without understanding what they actually do. "Managing
Gigabytes" ISBN 1-55860-570-3 covers some approaches.

Cheers,
  Steve



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Text Search vs MYSQL vs Lucene
  2004-09-09 12:56 Text Search vs MYSQL vs Lucene Vic Cekvenich <vic.cekvenich@portalvu.com>
  2004-09-09 14:20 ` Re: Text Search vs MYSQL vs Lucene Steve Atkins <steve@blighty.com>
@ 2004-09-09 15:33   ` David Garamond <lists@zara.6.isreserved.com>
  1 sibling, 0 replies; 6+ messages in thread

From: David Garamond @ 2004-09-09 15:33 UTC (permalink / raw)
  To: Steve Atkins <steve@blighty.com>; +Cc: pgsql-general@postgresql.org

Steve Atkins wrote:
>>What would be performance of pgSQL text search vs MySQL vs Lucene (flat 
>>file) for a 2 terabyte db?
>>thanks for any comments.
> 
> My experience with tsearch2 has been that indexing even moderately
> large chunks of data is too slow to be feasible. Moderately large
> meaning tens of megabytes.

My experience with MySQL's full text search as well as the various 
MySQL-based text indexing programs (forgot the names, it's been a while) 
for some 10-20GB of mail archives has been pretty disappointing too. My 
biggest gripe is with the indexing speed. It literally takes days to 
index less than a million documents.

I ended up using Swish++. Microsoft's CHM compiler also has pretty 
amazing indexing speed (though it crashes quite often when encountering 
bad HTML).

-- 
dave



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Text Search vs MYSQL vs Lucene
  2004-09-09 12:56 Text Search vs MYSQL vs Lucene Vic Cekvenich <vic.cekvenich@portalvu.com>
  2004-09-09 14:20 ` Re: Text Search vs MYSQL vs Lucene Steve Atkins <steve@blighty.com>
@ 2004-09-09 17:56   ` Oleg Bartunov <oleg@sai.msu.su>
  1 sibling, 0 replies; 6+ messages in thread

From: Oleg Bartunov @ 2004-09-09 17:56 UTC (permalink / raw)
  To: Steve Atkins <steve@blighty.com>; +Cc: pgsql-general@postgresql.org

I'd say indexing of 2 TB of data would be a very costly even for
standalone solution ( no relational database ).
Ideal solution would be to have tsearch2 for current documents and
standalone solution for archive documents. If these solutions share
common parsers,dictionaries and ranking schemes it would be easy to
combine results from two queries. We have prototype for standalone
solution - it's based on OpenFTS, which is already tsearch2 compatible.


	Oleg
On Thu, 9 Sep 2004, Steve Atkins wrote:

> On Thu, Sep 09, 2004 at 07:56:20AM -0500, Vic Cekvenich wrote:
>
> > What would be performance of pgSQL text search vs MySQL vs Lucene (flat
> > file) for a 2 terabyte db?
> > thanks for any comments.
>
> My experience with tsearch2 has been that indexing even moderately
> large chunks of data is too slow to be feasible. Moderately large
> meaning tens of megabytes.
>
> Your milage might well vary, but I wouldn't rely on postgresql full
> text search of that much data being functional, let alone fast enough
> to be useful. Test before making any decisions.
>
> If it's a static or moderately static text corpus you're probably
> better using a traditional FTS system anyway (tsearch2 has two
> advantages - tight integration with pgsql and good support for
> incremental indexing).
>
> Two terabytes is a lot of data. I'd suggest you do some research on
> FTS algorithms rather than just picking one of the off-the-shelf FTS
> systems without understanding what they actually do. "Managing
> Gigabytes" ISBN 1-55860-570-3 covers some approaches.
>
> Cheers,
>   Steve
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faqs/FAQ.html
>

	Regards,
		Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2004-09-09 17:56 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-09-09 12:56 Text Search vs MYSQL vs Lucene Vic Cekvenich <vic.cekvenich@portalvu.com>
2004-09-09 13:39 ` Shridhar Daithankar <shridhar@frodo.hserus.net>
2004-09-09 14:14   ` Vic Cekvenich <vic.cekvenich@portalvu.com>
2004-09-09 14:20 ` Steve Atkins <steve@blighty.com>
2004-09-09 15:33   ` David Garamond <lists@zara.6.isreserved.com>
2004-09-09 17:56   ` Oleg Bartunov <oleg@sai.msu.su>

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