Re: Improving Performance of Query ~ Filter by A, Sort by B
В списке pgsql-performance по дате отправления:
| От | legrand legrand |
|---|---|
| Тема | Re: Improving Performance of Query ~ Filter by A, Sort by B |
| Дата | |
| Msg-id | 1531345315560-0.post@n3.nabble.com обсуждение исходный текст |
| Ответ на | Improving Performance of Query ~ Filter by A, Sort by B (Lincoln Swaine-Moore <lswainemoore@gmail.com>) |
| Ответы |
Re: Improving Performance of Query ~ Filter by A, Sort by B
|
| Список | pgsql-performance |
Hello,
I have tested it with release 11 and limit 20 is pushed to each partition
when using index on tmstmp.
Could you tell us what is the result of your query applyed to one partition
EXPLAIN ANALYZE
SELECT "a"."id"
FROM a_partition1 "a"
WHERE "a"."parent_id" IN (
34226,24506,40987,27162
)
ORDER BY "a"."tmstmp" DESC
LIMIT 20;
May be that limit 20 is not pushed to partitions in your version ?
Regards
PAscal
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-performance-f2050081.html
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера