Re: [HACKERS] Slow - grindingly slow - query

From: Theo Kramer <theo(at)flame(dot)co(dot)za>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Slow - grindingly slow - query
Date: 1999-11-11 21:10:20
Message-ID: 382B30BC.E31B0C20@flame.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
(select accountmaster.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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bryan Ingram 1999-11-11 21:26:35 syncing, replicating & crash recovery Q's
Previous Message Tom Lane 1999-11-11 21:08:10 Re: [HACKERS] compression in LO and other fields