query takes a long time

Поиск
Список
Период
Сортировка
От Garry Saddington
Тема query takes a long time
Дата
Msg-id 200808232051.51544.garry@schoolteachers.co.uk
обсуждение исходный текст
Ответы Re: query takes a long time  ("marcin mank" <marcin.mank@gmail.com>)
Список pgsql-general

Can someone suggest how I could speed up the execution of this query?

select count(distinct attendance.studentid)

from attendance

where attendance.studentid not in (select studentid from attendance where auth not in('C','E','F','G','H','I','M','N','O','R','S','T','U'))

It returns the correct results but very slowly.

regards

garry

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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: psql vs. pgadmin3 was:can't get UPDATE ... RETURNING ... INTO ... to compile successfully
Следующее
От: Marc Balmer
Дата:
Сообщение: Re: psql vs. pgadmin3 was:can't get UPDATE ... RETURNING ... INTO ... to compile successfully