From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
---|---|
To: | Aaron Held <aaron(at)metrony(dot)com> |
Cc: | pgsql-sql <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Performance w/ multiple WHERE clauses |
Date: | 2002-09-18 21:58:56 |
Message-ID: | 20020918145825.X19535-100000@megazone23.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Wed, 18 Sep 2002, Aaron Held wrote:
> I am running into a serious performance issue with some basic queries.
>
> If I run something like
>
> select * from "Calls" WHERE
> ( ("CallType" = 'LONG DIST' ))
>
> The search takes about 15 seconds
>
> if I run
> select * from "Calls" WHERE
> ( ( "DateOfCall"='06/19/02') )
> AND ( ( "CallType" = 'LONG DIST' ))
> [DateOfCall is a DateTime field]
>
> it takes 15 minutes!
>
> both columns are indexed individually and expalain reports and Index scan for both
> queries.
>
> Any pointers where to look next?
Are they using the same index? Have you done analyze
recently?
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2002-09-19 06:37:39 | Re: Index usage on date feild , differences in '>' and '>=' |
Previous Message | Aaron Held | 2002-09-18 21:17:48 | Performance w/ multiple WHERE clauses |