Re: pkey is not used on productive database

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: pkey is not used on productive database
Дата
Msg-id CAOR=d=2iS-kuQc+Bk0sz=3x0PMBYTj1ScPs6QLpEQ7+AD07NDA@mail.gmail.com
обсуждение исходный текст
Ответ на pkey is not used on productive database  ("Soporte @ TEKSOL S.A." <soporte@teksol.com.ar>)
Список pgsql-performance
On Mon, Oct 3, 2011 at 11:48 AM, Soporte @ TEKSOL S.A.
<soporte@teksol.com.ar> wrote:
> Hi,
>
> I need help to understand the issue on a productive database for a select
> that takes more time than expected.

> 1-      On a development database I ran the query (select) and I can see on
> Explain Analyze pgAdmin use all the indexes and primary keys defined. Dev db
> has almost 10% of productive data.
>
> 2-      On productive database the same query on Explain Analyze from
> pgAdmin shows a diferent planning, not using a pkey index and instead uses
> the progressive scan on a million of rows. I can see Primary key is defined
> for the table on pgAdmin.
>
> What could be the issue on a productive for not use the pkey index for the
> SELECT?

Please post the schema, query and explain analyze output of the runs
on both machines.

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

Предыдущее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: pkey is not used on productive database
Следующее
От: Robert Klemme
Дата:
Сообщение: Re: Window functions and index usage