Re: [PERFORM] Beginner Question

2007-04-11 Thread Jan de Visser
On Monday 09 April 2007 05:09:53 s d wrote: > Hi, > I am trying to figure out how to debug a performance problem / use psql > explain. The table in question is: > # \d word_association; >Table "public.word_association" > Column | Type | Modifiers > +--

Re: [PERFORM] Beginner Question

2007-04-10 Thread Mike Gargano
Yeah, I have a lot of similar problems where an index that I have to speed up one query is used in another query where it actually slows it down. Is there any way to ignore indexes for certain queries? We've been appending empty strings and adding zero's to the column data to force it int

Re: [PERFORM] Beginner Question

2007-04-10 Thread Dave Dutcher
Monday, April 09, 2007 7:46 PM > To: Jan de Visser > Cc: pgsql-performance@postgresql.org > Subject: Re: [PERFORM] Beginner Question > > > Hi Jan, > Adding this Index slowed down things by a factor of 4. > > Also, the performance is so horrible (example bellow) th

Re: [PERFORM] Beginner Question

2007-04-09 Thread s d
Hi Jan, Adding this Index slowed down things by a factor of 4. Also, the performance is so horrible (example bellow) that i am certain i am doing something wrong. Does the following explain gives any ideas ? Thanks =# EXPLAIN ANALYZE select * from word_association where (word1 ='the' or word2

Re: [PERFORM] Beginner Question

2007-04-09 Thread Tom Lane
"s d" <[EMAIL PROTECTED]> writes: > 1. i can undestand where the cost=11.53 came from but where did the > 1192.09 come form? The values are in milli right ? No, the unit of estimated cost is 1 disk page fetch. See http://www.postgresql.org/docs/8.2/static/using-explain.html

[PERFORM] Beginner Question

2007-04-09 Thread s d
Hi, I am trying to figure out how to debug a performance problem / use psql explain. The table in question is: # \d word_association; Table "public.word_association" Column | Type | Modifiers ++ word1 | character