Re: [PERFORM] Tsearch2 performance on big database

2005-03-24 Thread Rick Jansen
Oleg Bartunov wrote: stat() is indeed a bigdog, it was designed for developers needs, so we recommend to save results in table. Anyway, here's my pg_ts_cfgmap now (well the relevant bits): default_english | lhword | {en_ispell,en_stem} default_english | lpart_hword | {en_ispell,en_stem} defa

Re: [PERFORM] Tsearch2 performance on big database

2005-03-24 Thread Rick Jansen
Oleg Bartunov wrote: > from my notes > http://www.sai.msu.su/~megera/oddmuse/index.cgi/Tsearch_V2_Notes > > It's usefull to see words statistics, for example, to check how good > your dictionaries work or how did you configure pg_ts_cfgmap. Also, you > may notice probable stop words relevant for yo

Re: [PERFORM] Tsearch2 performance on big database

2005-03-23 Thread Rick Jansen
Oleg Bartunov wrote: On Tue, 22 Mar 2005, Rick Jansen wrote: Hmm, default configuration is too eager, you index every lexem using simple dictionary) ! Probably, it's too much. Here is what I have for my russian configuration in dictionary database: default_russian | lword| {en_i

Re: [PERFORM] Tsearch2 performance on big database

2005-03-22 Thread Rick Jansen
Oleg Bartunov wrote: Mike, no comments before Rick post tsearch configs and increased buffers ! Union shouldn't be faster than (term1|term2). tsearch2 internals description might help you understanding tsearch2 limitations. See http://www.sai.msu.su/~megera/oddmuse/index.cgi/Tsearch_V2_internals

Re: [PERFORM] Tsearch2 performance on big database

2005-03-22 Thread Rick Jansen
Mike Rylander wrote: On Tue, 22 Mar 2005 15:36:11 +0300 (MSK), Oleg Bartunov wrote: use something like echo "15000" > /proc/sys/kernel/shmmax to increase shared memory. In your case you could dedicate much more memory. Regards, Oleg Thanks, I'll check that out. And Oleg

[PERFORM] Tsearch2 performance on big database

2005-03-22 Thread Rick Jansen
7; on our MySQL search takes 5.8 seconds and returns 375 results. The same query on postgresql using the tsearch2 index takes 30802.105 ms and returns 298 results. How do I speed this up? Should I change settings, add or change indexes or.. what? Rick Jansen -- Systems Administrator for