Re: [HACKERS] Slow - grindingly slow - query

Поиск
Список
Период
Сортировка
От Theo Kramer
Тема Re: [HACKERS] Slow - grindingly slow - query
Дата
Msg-id 382B30BC.E31B0C20@flame.co.za
обсуждение исходный текст
Ответ на Slow - grindingly slow - query  (Theo Kramer <theo@flame.co.za>)
Список pgsql-hackers
Hannu Krosing wrote:
> try using
>     create index registrationtype_index  on accounts (registrationtype);

OK did that, and am rerunning the query. 

The explain now shows explain select accountdetail.domain from accountdetail where   accountdetail.domain not in
(selectaccountmaster.domain from accountmaster); NOTICE:  QUERY PLAN:
 
 Seq Scan on accounts  (cost=3667.89 rows=34958 width=12)   SubPlan     ->  Index Scan using registrationtype_idx on
accounts (cost=2444.62
 
rows=33373 width=12)
 EXPLAIN


Will let you all know when it completes.
--------
Regards
Theo


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

Предыдущее
От: Frank Cusack
Дата:
Сообщение: Re: [HACKERS] Re: [BUGS] uniqueness not always correct
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] compression in LO and other fields