Re: Query went slow all of sudden. ON V 11.3

Поиск
Список
Период
Сортировка
От Michael Lewis
Тема Re: Query went slow all of sudden. ON V 11.3
Дата
Msg-id CAHOFxGofY1e8UEBcvPvjcM05s0Zj+qy4YTZhBMMFrcA40kWPAA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Query went slow all of sudden. ON V 11.3  (nikhil raj <nikhilraj474@gmail.com>)
Список pgsql-performance
What are approx row counts and distribution of data in the concerned tables and columns? Have you run EXPLAIN (query plan) to get the plan that will be executed and can you paste on https://explain.depesz.com/ and share the link that results?

Do you have an index on LOWER( cr ) on table temp_10032019020721_4470?
Do you have an index on LOWER( c_pagealias ) on table t_ages?
Do you have an index on LOWER(  c_id ) on table t_meners?

If temp_10032019020721_4470 is truly temp table, was it analyzed after creating/inserting/updating/deleting data last, so that the optimizer knows the number of distinct values, how many rows, most common values, etc?


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

Предыдущее
От: nikhil raj
Дата:
Сообщение: Re: Query went slow all of sudden. ON V 11.3
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: Query went slow all of sudden. ON V 11.3