SQL IN clauses are miles faster in Postgres 17

  Рет қаралды 3,836

Hussein Nasser

Hussein Nasser

Күн бұрын

Пікірлер: 14
@hnasr
@hnasr 6 сағат бұрын
Database fundamentals course databases.win
@abc_cba
@abc_cba 7 сағат бұрын
Did you guys take part in Postgres survey they posted up on their website? That data helps them develop, so, do contribute to their survey questionnaires.
@Voidstroyer
@Voidstroyer 7 сағат бұрын
Small mistake in your query for postgres 17. You missed the id 4. You did a select ....... where id in (1, 2, 3, 5, 6, 7, 8, 9, 10) number 4 is missing. Whereas in postgres 16 you did have all 10 ids. I also noticed that even though the number of hits and idx scans in postgres 17 is much lower than 16, the planning time and execution time was higher? (And that was including the mistake above where the query in postgres 17 had 1 less item to find). That seemed a bit weird.
@hkupty
@hkupty 3 сағат бұрын
I think the planning time (and the strategy selected) were off precisely because of the typo in the query. Index scan would've been much faster.
@raghavamorusupalli7557
@raghavamorusupalli7557 7 сағат бұрын
Thank you for this video
@Yash-hn6ch
@Yash-hn6ch 7 сағат бұрын
postgres is amazing!
@mrrolandlawrence
@mrrolandlawrence 7 сағат бұрын
love me some optimisations
@banksy215
@banksy215 7 сағат бұрын
Wondering why in PG17 the planning and execution times were longer? This doesn't seem like an improvement.
@hnasr
@hnasr 3 сағат бұрын
yeah I just noticed that too. I installed pg17rc1 lets hope this isn’t a consistent problem in the final release.
@hkupty
@hkupty 3 сағат бұрын
It's because of the typo in the query (missing 4 in the query)
@ivinsergey7497
@ivinsergey7497 2 сағат бұрын
We always had dots (or slashes) in zeros :) It came to us from ancient times when you could confuse "o" ("O") with zero. Some early teletypes began using the slashed zero to avoid confusion. Dots sometimes simulate the slash
@iaminterestedineverything
@iaminterestedineverything 4 сағат бұрын
Music to my ears.. in clauses are much more human readable compared to exists
@romansemkin3317
@romansemkin3317 3 сағат бұрын
Now I forgot what was in the video. I was thinking about the dots 😂
@trymoto
@trymoto 4 сағат бұрын
Mocking american accent from Hussein in the end is 🤌
How many kernel system calls do runtimes make?
19:18
Hussein Nasser
Рет қаралды 19 М.
Database Indexing for Dumb Developers
15:59
Laith Academy
Рет қаралды 60 М.
АЗАРТНИК 4 |СЕЗОН 2 Серия
31:45
Inter Production
Рет қаралды 1,1 МЛН
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 9 МЛН
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 8 МЛН
Frontend and Backends Timeouts
24:40
Hussein Nasser
Рет қаралды 10 М.
7 Database Paradigms
9:53
Fireship
Рет қаралды 1,6 МЛН
Before you move to HTTP/3 ...
11:31
Hussein Nasser
Рет қаралды 17 М.
Why create Index blocks writes
11:16
Hussein Nasser
Рет қаралды 12 М.
The Home Server I've Been Wanting
18:14
Hardware Haven
Рет қаралды 40 М.
They made Kafka 80% faster by switching file systems
31:30
Hussein Nasser
Рет қаралды 35 М.
АЗАРТНИК 4 |СЕЗОН 2 Серия
31:45
Inter Production
Рет қаралды 1,1 МЛН