Re: Performance w/ multiple WHERE clauses - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: Performance w/ multiple WHERE clauses
Date
Msg-id 20020918145825.X19535-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Performance w/ multiple WHERE clauses  ("Aaron Held" <aaron@metrony.com>)
List 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?




pgsql-sql by date:

Previous
From: "Aaron Held"
Date:
Subject: Performance w/ multiple WHERE clauses
Next
From: "Rajesh Kumar Mallah."
Date:
Subject: Index usage on date feild , differences in '>' and '>=' and between