Re: Query performance

Поиск
Список
Период
Сортировка
От Nikolay Samokhvalov
Тема Re: Query performance
Дата
Msg-id e431ff4c0608030137h335d3307s2256e15e444168@mail.gmail.com
обсуждение исходный текст
Ответ на Query performance  ("Christian Rengstl" <Christian.Rengstl@klinik.uni-regensburg.de>)
Список pgsql-general
On 8/3/06, Christian Rengstl <Christian.Rengstl@klinik.uni-regensburg.de> wrote:
> ...
> Unfortunately the query takes pretty long for the big table, so maybe one of you has a suggestion on how to make it
faster.
>

try smth like this:

select val1, val2, crit from mytable as a where pid='somepid' and
exists(select 1 from myCritTable as b where a.crit = b.crit);


--
Best regards,
Nikolay

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

Предыдущее
От: "Christian Rengstl"
Дата:
Сообщение: Query performance
Следующее
От: Hannes Dorbath
Дата:
Сообщение: TSearch: Need debug help