On Fri, 16 Nov 2001 frbn(at)efbs-seafrigo(dot)fr wrote:
> hi,
> on a +10 millions rec table, a simple select:
>
> SELECT * FROM tab where num = x;
>
> time: 5 secondes
>
> SELECT * FROM tab where num = y;
>
> time: 5 secondes
>
>
> SELECT * FROM tab WHERE num = x OR num = y;
>
> time: more than 10 mn !!!
>
> num is an integer.
Have you run vacuum analyze, what does explain show
on the three queries?