Re: problem with query

Поиск
Список
Период
Сортировка
От Sašo Gantar
Тема Re: problem with query
Дата
Msg-id CAGB0_640Kv4c9Kq5qDNZCNcAxo-_aO=AaKJqBann+iNiU0imWA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: problem with query  (David Rowley <dgrowleyml@gmail.com>)
Ответы Re: problem with query
Список pgsql-general
what helps is    
SET enable_nestloop = off;
query takes less then 2seconds

but it's probably not a good idea to change this flag

On Wed, 15 May 2024 at 13:23, David Rowley <dgrowleyml@gmail.com> wrote:
On Wed, 15 May 2024 at 21:08, Sašo Gantar <sasog23@gmail.com> wrote:
> this query takes more than 8 seconds,
> if i remove "AND ((pgn.nspname='servicedesk'))" and test it, it takes <1s

Including the EXPLAIN rather than EXPLAIN (ANALYZE, BUFFERS) isn't
very useful as there's no way to tell if the planner's estimates were
accurate or not. Also with EXPLAIN only, we don't know where the time
was spent in the query.

Running the EXPLAIN with "SET track_io_timing = 1;" would be even more useful.

David

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

Предыдущее
От: Sašo Gantar
Дата:
Сообщение: Re: problem with query
Следующее
От: milist ujang
Дата:
Сообщение: Re: signal 11: Segmentation fault ; query constraint list; pg16.3