Тёмный

Postgres Planner Quirks: The impact of ORDER BY + LIMIT on index usage 

pganalyze
Подписаться 4,6 тыс.
Просмотров 758
50% 1

Find the article on our blog here:
pganalyze.com/...
In E113 of "5mins of Postgres" we discuss a commonly encountered Postgres planner quirk, which is how Postgres behaves when you have a LIMIT and an ORDER BY clause, and it picks the wrong index.
Learn more about pganalyze:
pganalyze.com
pganalyze.com/...
/ pganalyze
Check out the pganalyze library for eBooks, webinars, and more:
pganalyze.com/...
📑 What we have discussed in this episode of 5mins of Postgres:
DBA StackExchange - Poor performance on query with LIMIT when I add an ORDER BY?
dba.stackexcha...
Why is there a Sort after an Index Only Scan? - Mailinglist discussion on pgsql-performance
www.postgresql...
Example of bad ORDER BY + LIMIT on dbfiddle
dbfiddle.uk/D7...
Debugging the Postgres query planner
gocardless.com...
pg_hint_plan
github.com/oss...
Recent Hacker News discussion on pg_hint_plan, including discussion of the ORDER BY + LIMIT problem
news.ycombinat...
One WEIRD Trick for Speeding Up ORDER BY That You Probably Shouldn't Use - Blog post by Cassidy on DEV Community
dev.to/cassidy...

Опубликовано:

 

11 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 2   
@filipebraganca2558
@filipebraganca2558 5 месяцев назад
Never heard about that +0 solution. Genious!!!! Thanks for sharing it.
@professortrog7742
@professortrog7742 5 месяцев назад
Indeed.
Далее
Oops 😅
00:10
Просмотров 6 млн
ДИАНА в ТАНЦЕ #дистори
00:14
Просмотров 247 тыс.
КУШАТЬ ХОЧЕШЬ? #дистори
00:15
Просмотров 142 тыс.
Are Multi-Column Indexes a good idea?
11:22
Просмотров 3,9 тыс.
Postgres just got even faster
26:42
Просмотров 35 тыс.
Microservices with Databases can be challenging...
20:52
Why Every .NET Developer NEEDS Dependency Injection
10:00
Debugging a Complex T-SQL Issue
1:00:54
Просмотров 3,6 тыс.