Re: Performance w/ multiple WHERE clauses

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Performance w/ multiple WHERE clauses
Дата
Msg-id 20020918145825.X19535-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Performance w/ multiple WHERE clauses  ("Aaron Held" <aaron@metrony.com>)
Список 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 по дате отправления:

Предыдущее
От: "Aaron Held"
Дата:
Сообщение: Performance w/ multiple WHERE clauses
Следующее
От: "Rajesh Kumar Mallah."
Дата:
Сообщение: Index usage on date feild , differences in '>' and '>=' and between