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 4 сағат бұрын
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 🤌
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 98 МЛН
How Strong is Tin Foil? 💪
00:26
Preston
Рет қаралды 116 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 66 МЛН
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 52 МЛН
Frontend and Backends Timeouts
24:40
Hussein Nasser
Рет қаралды 10 М.
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 296 М.
Postgres just got even faster
26:42
Hussein Nasser
Рет қаралды 29 М.
7 Database Paradigms
9:53
Fireship
Рет қаралды 1,6 МЛН
The Home Server I've Been Wanting
18:14
Hardware Haven
Рет қаралды 41 М.
Beginner to T-SQL [Full Course]
2:45:54
Pragmatic Works
Рет қаралды 312 М.
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 98 МЛН