Optimize Your SQL Queries | Postgres Edition

  Рет қаралды 12,076

Code with Irtiza

Code with Irtiza

Күн бұрын

Easy way you can analyze and optimize your SQL queries to get the best performance out of them.
Reference: thoughtbot.com/blog/reading-a...
🥹 If you found this helpful, follow me online here:
✍️ Blog / irtizahafiz
👨‍💻 Website irtizahafiz.com
📲 Instagram / irtiza.hafiz
0:00 Agenda
01:15 Difference between EXPLAIN & EXPLAIN ANALYZE
02:35 How count of returned rows affect performance
04:15 How to monitor index usage
10:30 Aggregation queries using indexes
13:37 Information about JOIN algorithms
18:15 ORDER BY using Index forward and backward
20:56 How to read query plans
22:10 Outro
#database #mysql #postgres

Пікірлер: 11
@xanthus1
@xanthus1 Жыл бұрын
Just wanted to say thanks for this video! This was a great step by step breakdown and analysis.
@irtizahafiz
@irtizahafiz 7 ай бұрын
Thank you for taking the time to leave a comment. Glad you found it useful.
@DanielSposito
@DanielSposito Жыл бұрын
All of your videos are excellent. Thank you for the clear explanations and detailed examples. I hope you continue to create more videos for your channel!
@irtizahafiz
@irtizahafiz 8 ай бұрын
Glad you found it helpful! Cheers!
@luanlucas8605
@luanlucas8605 Жыл бұрын
Hi. Found your channel today and subscribed. Pretty good content here. Keep it up :D
@irtizahafiz
@irtizahafiz Жыл бұрын
Welcome aboard!
@user-ct2mp1xt4f
@user-ct2mp1xt4f Ай бұрын
thank you it was very clear
@robertczaja176
@robertczaja176 2 ай бұрын
great video thanks a lot!
@irtizahafiz
@irtizahafiz 2 ай бұрын
Glad you liked it!
@Rashidulhasan777
@Rashidulhasan777 Жыл бұрын
Near 17:40, I think the volume table doesn’t have only one row. I think it decided to sequentially scan the volume table for each volume.volume_id will then match book.volume_id with each volume.volume_id. And for matching purposes, it is doing index scan as there is an index for book.volume_id. Sorry, I might be wrong. I didn’t understand how DBMS decided which table it will do the sequential scan first? Thanks for your video!
@irtizahafiz
@irtizahafiz Жыл бұрын
Hi! Thank you for explaining. The link I have in the description should give you a better understanding of how to read these query plans. I was just trying to explain the tool, rather than go into the details of how to read them.
Basic understanding of EXPLAIN ANALYZE
36:08
PostgresConf South Africa
Рет қаралды 25 М.
Final muy increíble 😱
00:46
Juan De Dios Pantoja 2
Рет қаралды 54 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
00:56
صدام العزي
Рет қаралды 36 МЛН
Did you believe it was real? #tiktok
00:25
Анастасия Тарасова
Рет қаралды 53 МЛН
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 335 М.
Wait... PostgreSQL can do WHAT?
20:33
The Art Of The Terminal
Рет қаралды 188 М.
7 Database Design Mistakes to Avoid (With Solutions)
11:29
Database Star
Рет қаралды 67 М.
Creating a search catalog in PostgreSQL using full text indexing
14:05
PostgreSQL Indexing : How, why, and when.
31:21
PyCon AU
Рет қаралды 76 М.
Understand PostgreSQL query plan in 10 minutes
12:58
Lift And Shift Dev
Рет қаралды 39 М.
Postgres Open 2016 - Identifying Slow Queries and Fixing Them!
54:37
Faster database indexes (straight from the docs)
13:28
PlanetScale
Рет қаралды 125 М.
6 SQL Joins you MUST know! (Animated + Practice)
9:47
Anton Putra
Рет қаралды 117 М.
Final muy increíble 😱
00:46
Juan De Dios Pantoja 2
Рет қаралды 54 МЛН