Re: Indices arent being used

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: Indices arent being used
Дата
Msg-id 1064533600.27395.6.camel@jester
обсуждение исходный текст
Ответ на Indices arent being used  (rantunes@student.dei.uc.pt)
Список pgsql-performance
> Im running a Datawarehouse benchmark (APB-1) on PostgreSql. The objective is to
> choose which of the to main db (PostgreSQL, MySQL) is fastest. I've run into a
> small problem which I hope could be resolved here.
>
> I'm trying to speed up this query:
>
> select count(*) from actvars, prodlevel where
> actvars.product_level=prodlevel.code_level and
> prodlevel.division_level='OY3S5LAPALL6';

How about EXPLAIN ANALYZE output?

> ACTVARS is a fact table of aproximatly 16 million rows, PRODLEVEL has 20700
> rows. Both have btree indices.

> The database has been vacuumed and analyze has been executed.

The usual postgresql.conf adjustments have also been made?


Вложения

В списке pgsql-performance по дате отправления:

Предыдущее
От: rantunes@student.dei.uc.pt
Дата:
Сообщение: Indices arent being used
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: TPC-R benchmarks