Re: Very slow Query compared to Oracle / SQL - Server

Поиск
Список
Период
Сортировка
От Andreas Joseph Krogh
Тема Re: Very slow Query compared to Oracle / SQL - Server
Дата
Msg-id VisenaEmail.2.8fd1850819f96dd.1794322fd82@tc7-visena
обсуждение исходный текст
Ответ на Re: Very slow Query compared to Oracle / SQL - Server  (Semen Yefimenko <semen.yefimenko@gmail.com>)
Ответы Re: Very slow Query compared to Oracle / SQL - Server  (Vijaykumar Jain <vijaykumarjain.github@gmail.com>)
Список pgsql-performance
På torsdag 06. mai 2021 kl. 20:59:34, skrev Semen Yefimenko <semen.yefimenko@gmail.com>:
Yes, rewriting the query with an IN clause was also my first approach, but I didn't help much. 
The Query plan did change a little bit but the performance was not impacted.
 
CREATE INDEX idx_arcstatus_le1 ON schema.logtable ( archivestatus ) where (archivestatus <= 1)
ANALYZE  schema.logtable

This resulted in this query plan:
[...]
 
I assume (4000,4001,4002) are just example-values and that they might be anything? Else you can just include them in your partial-index.
 
--
Andreas Joseph Krogh

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

Предыдущее
От: Semen Yefimenko
Дата:
Сообщение: Re: Very slow Query compared to Oracle / SQL - Server
Следующее
От: Vijaykumar Jain
Дата:
Сообщение: Re: Very slow Query compared to Oracle / SQL - Server