Re: Poor performance on very simple query ? - Mailing list pgsql-performance

From Tom Lane
Subject Re: Poor performance on very simple query ?
Date
Msg-id 25424.1159886113@sss.pgh.pa.us
Whole thread Raw
In response to Poor performance on very simple query ?  (Arnaud Lesauvage <thewild@freesurf.fr>)
List pgsql-performance
Arnaud Lesauvage <thewild@freesurf.fr> writes:
>    Seq Scan on table1  (cost=0.00..23.69 rows=10 width=35) (actual
> time=0.023..0.734 rows=7 loops=1)
>      Filter: ((gid = 33) OR (gid = 110) OR (gid = 65) OR (gid = 84)
> OR (gid = 92) OR (gid = 94) OR (gid = 13) OR (gid = 7) OR (gid =
> 68) OR (gid = 41))
>    Total runtime: 0.801 ms

This will start using the index as soon as the table gets big enough to
make it worthwhile.

            regards, tom lane

pgsql-performance by date:

Previous
From: Guillaume Cottenceau
Date:
Subject: Re: Poor performance on very simple query ?
Next
From: Geoffrey
Date:
Subject: Re: Unsubscribe