Simple queries take forever to run

From: Michael Guerin <guerin(at)rentec(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Simple queries take forever to run
Date: 2003-08-26 23:11:53
Message-ID: 3F4BE939.8040101@rentec.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I was going to post this on the performance page, but I assume its
something a novice gets stuck on.

This query: select count(*) from x where id not in (select id from y);
takes 1-3 seconds on sql server and runs forever on postgresql.

Both tables have an index on id
Table x has 1200673 rows
Table y has 1282 rows

shared_buffers = 64000
effective_chache_size = 400000

any ideas???

Browse pgsql-novice by date

  From Date Subject
Next Message JohnH 2003-08-26 23:48:03 using dates in pgsql
Previous Message Juan Francisco Diaz 2003-08-26 21:47:19 Returning SETOF INTEGER mystery...