Re: Slow Query

Поиск
Список
Период
Сортировка
От 林士博
Тема Re: Slow Query
Дата
Msg-id CACudzGibWcux4Zy72oxD2QmeyyqPqGCP+hg3DDidGrcWt6by3A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Slow Query  (robbyc <robcampbell73@gmail.com>)
Ответы Re: Slow Query  (robbyc <robcampbell73@gmail.com>)
Список pgsql-performance
In the 'not exists' cluster, you do not have to search table "Vacancy as v" again.
I think it would be faster to use the outer Vacancy table as below.
In your case, that do the same work.

NOT EXISTS (
        SELECT 1
        FROM "CategoryOption_TableRow" "ct126" 
        WHERE "Vacancy"."Template"
          AND "ct126"."CategoryOptionID" IN (34024,35254,35255,35256)
          AND "ct126"."Category_TableID" = 126
          AND "ct126"."RowID" = "Vacancy"."ID"
          )

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

Предыдущее
От: robbyc
Дата:
Сообщение: Re: Slow Query
Следующее
От: Josh Berkus
Дата:
Сообщение: Strange query stalls on replica in 9.3.9