| От | hubert depesz lubaczewski |
|---|---|
| Тема | Re: Identify columns that need indexes |
| Дата | |
| Msg-id | 20201112111408.GB4026@depesz.com обсуждение исходный текст |
| Ответ на | Identify columns that need indexes (Yambu <hyambu@gmail.com>) |
| Список | pgsql-sql |
On Thu, Nov 12, 2020 at 09:50:03AM +0200, Yambu wrote: > May I know if there is a query I can run to identify the columns that need > indexes. I know I can get tables that are having high sequential scans > ,what I need is to identify are the columns. Not really, as this would be in AI territory. There can be queries that will find, for example, fkeys that are not indexed. Or some other subset of problems. But general "query that will tell me where to put index" - no. The usual solution is to analyze logs, find queries that use most time, and optimize them. depesz
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера