Re: Fwd: Query with high planning time compared to execution time
В списке pgsql-performance по дате отправления:
| От | legrand legrand |
|---|---|
| Тема | Re: Fwd: Query with high planning time compared to execution time |
| Дата | |
| Msg-id | 1541199100540-0.post@n3.nabble.com обсуждение |
| Ответ на | Re: Fwd: Query with high planning time compared to execution time (Tomas Vondra <tomas.vondra@2ndquadrant.com>) |
| Список | pgsql-performance |
Tomas Vondra-4 wrote > On 11/02/2018 10:36 AM, Richard Lee wrote: > [...] > >> What are my other options to improve the query planning time? >> > > Can you do a bit of profiling, to determine which part of the query > planning process is slow here? > [...] After planning profiling, (or in //), you can try to limit the number of plans that the planner has to evaluate: setting enable_mergejoin to off, or some others from https://www.postgresql.org/docs/10/static/runtime-config-query.html but you will have to check that the chosen plan is still good An other way is maybe reducing the number of indexes (you have so many ones ...). Usually, needed indexes are PK, UK, indexes for FK, and a "few" more. Could you provide the SQL query to check that ? Regards PAscal -- Sent from: http://www.postgresql-archive.org/PostgreSQL-performance-f2050081.html
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера