Re: [HACKERS] Slow - grindingly slow - query - Mailing list pgsql-hackers

From Theo Kramer
Subject Re: [HACKERS] Slow - grindingly slow - query
Date
Msg-id 382B30BC.E31B0C20@flame.co.za
Whole thread Raw
In response to Slow - grindingly slow - query  (Theo Kramer <theo@flame.co.za>)
List 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 by date:

Previous
From: Frank Cusack
Date:
Subject: Re: [HACKERS] Re: [BUGS] uniqueness not always correct
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] compression in LO and other fields