| От | Soporte @ TEKSOL S.A. |
|---|---|
| Тема | pkey is not used on productive database |
| Дата | |
| Msg-id | 014c01cc81f4$a774e140$f65ea3c0$@teksol.com.ar обсуждение |
| Ответы |
Re: pkey is not used on productive database
Re: pkey is not used on productive database |
| Список | pgsql-performance |
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?
Cristian C. Bittel
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера