SELECT * FROM t where p or q;

Поиск
Список
Период
Сортировка
От frbn@efbs-seafrigo.fr
Тема SELECT * FROM t where p or q;
Дата
Msg-id 3BF51764.8BEAC873@efbs-seafrigo.fr
обсуждение исходный текст
Ответы Re: SELECT * FROM t where p or q;  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Re: SELECT * FROM t where p or q;  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
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.


В списке pgsql-sql по дате отправления:

Предыдущее
От: "Jack Gao"
Дата:
Сообщение: Re: Is this a bug?
Следующее
От: Janning Vygen
Дата:
Сообщение: image db with keywords? n:n or 1:n relation