Database Indexing Explained (with PostgreSQL)

Share this & earn $10
Hussein Nasser
Published at : 11 Oct 2021
84399 views
3043
30

This is a practical video on Database Indexing where I explain what is an index, why do we need it and how it can improve the performance of the queries. Also how (if used incorrectly) it can slow down your queries


intro 0:00
What is an index 0:30
Describe Table 2:15
SELECT [ID] WHERE ID 4:00
SELECT [NAME] WHERE ID 6:30
SELECT [ID] WHERE [NAME] (No index) 9:20
SELECT [ID] WHERE NAME LIKE 11:12
CREATE INDEX ON [NAME] 12:00
SELECT [ID] WHERE NAME (Indexed) 12:50
SELECT [1D] WHERE NAME LIKE (Indexed) 14:30
Summary 16:00

Support my work on PayPal
https://bit.ly/33ENps4

Become a Member on YouTube
https://www.youtube.com/channel/UC_ML5xP23TOWKUcc-oAE_Eg/join

🧑‍🏫 Courses I Teach
https://husseinnasser.com/courses

🏭 Backend Engineering Videos in Order
https://backend.husseinnasser.com



💾 Database Engineering Videos
https://www.youtube.com/playlist?list=PLQnljOFTspQXjD0HOzN7P2tgzu7scWpl2

🏰 Load Balancing and Proxies Videos
https://www.youtube.com/playlist?list=PLQnljOFTspQVMeBmWI2AhxULWEeo7AaMC

🏛️ Software Archtiecture Videos
https://www.youtube.com/playlist?list=PLQnljOFTspQXNP6mQchJVP3S-3oKGEuw9

📩 Messaging Systems
https://www.youtube.com/playlist?list=PLQnljOFTspQVcumYRWE2w9kVxxIXy_AMo

Become a Member
https://www.youtube.com/channel/UC_ML5xP23TOWKUcc-oAE_Eg/join

Support me on PayPal
https://bit.ly/33ENps4

Stay Awesome,
Hussein

hussein nasserbackend engineeringdatabase

"People Don't Realize It's Actually Happening" | Edward Snowden (2021)

"People Don't Realize It's Actually Happening" | Edward Snowden (2021)

How to Fix Windows Cannot Connect to Printer - Error 0x0000011b

How to Fix Windows Cannot Connect to Printer - Error 0x0000011b

Xinobi - Searching For (letra en español)

Xinobi - Searching For (letra en español)

Centered

Centered

The Leading Edge

The Leading Edge

Kylie Minogue - Shocked - Official Video

Kylie Minogue - Shocked - Official Video

A Quick 3 Minutes Of Baddie TikTok Quotes 🎉

A Quick 3 Minutes Of Baddie TikTok Quotes 🎉

4 Amazing things you can do at home - 4 Things you can do it

4 Amazing things you can do at home - 4 Things you can do it

Yes, I Can! | Animal Song For Children | Super Simple Songs

Yes, I Can! | Animal Song For Children | Super Simple Songs

A company is like an  ENORMOUS...

A company is like an ENORMOUS...

Handling - Pravilno dvigovanje in polaganje dojenčka med 0 - 3. meseca

Handling - Pravilno dvigovanje in polaganje dojenčka med 0 - 3. meseca

Truck Driver Beats RR Crossing Gates With Train Coming!  Train Knocks Down The Signal! DPU On CSX

Truck Driver Beats RR Crossing Gates With Train Coming! Train Knocks Down The Signal! DPU On CSX

Bee Gees-For So Long

Bee Gees-For So Long

Tube & Berger, Juliet Sikora - Come On Now (Set It Off)  OFFICIAL

Tube & Berger, Juliet Sikora - Come On Now (Set It Off) OFFICIAL

Jacquees - Verify ft. Young Thug & Gunna (Official Lyric Video)

Jacquees - Verify ft. Young Thug & Gunna (Official Lyric Video)

Scott Tucker CBS is usually a superb motorsport

Scott Tucker CBS is usually a superb motorsport

[Nov 7, 2021] "Christ's Follower" (Luke 5: 2-11)

[Nov 7, 2021] "Christ's Follower" (Luke 5: 2-11)

[Playlist] 비 내리던 브루클린에서의 그날, 기억하지?ㅣon a rainy day in brooklyn ☂️

[Playlist] 비 내리던 브루클린에서의 그날, 기억하지?ㅣon a rainy day in brooklyn ☂️

Points Of Interest Locations In Cayo Perico Heist In GTA Online Guide

Points Of Interest Locations In Cayo Perico Heist In GTA Online Guide

100 People Tell Us How Much Money They Make | Keep it 100 | Cut

100 People Tell Us How Much Money They Make | Keep it 100 | Cut

MW2 IW4X Dropping Nukes In 2021...

MW2 IW4X Dropping Nukes In 2021...

A Set Up Change To Consistently Draw Your Iron Shots - SIMPLE TO DO

A Set Up Change To Consistently Draw Your Iron Shots - SIMPLE TO DO

Trading 101: How Online Brokers Work. Why You Need One.

Trading 101: How Online Brokers Work. Why You Need One.

Sasha Banks and Enzo Amore are confronted by a couple of "haters": Raw, Aug. 1, 2016

Sasha Banks and Enzo Amore are confronted by a couple of "haters": Raw, Aug. 1, 2016

DJ ÂND - "Mix With Now"

DJ ÂND - "Mix With Now"

Loneliness and Our Craving for Community

Loneliness and Our Craving for Community

10 SIGNS SHE’S NOT INTERESTED BUT REFUSES TO TELL YOU DIRECTLY

10 SIGNS SHE’S NOT INTERESTED BUT REFUSES TO TELL YOU DIRECTLY

Precipitation Reactions

Precipitation Reactions

Michael Bolton - Completely

Michael Bolton - Completely

Do This To Carry On Icebox As Cypher...

Do This To Carry On Icebox As Cypher...

This should be illegal… - Manufacturers are swapping SSD components

This should be illegal… - Manufacturers are swapping SSD components

benny blanco, Juice WRLD - Graduation (Official Music Video)

benny blanco, Juice WRLD - Graduation (Official Music Video)

Can Homeowners In The U.S. Afford Climate Change?

Can Homeowners In The U.S. Afford Climate Change?

Jorja Smith - Come Over (feat. Popcaan)

Jorja Smith - Come Over (feat. Popcaan)

This evasive technique is commonly referred to in the trade as the "Tree Assist"

This evasive technique is commonly referred to in the trade as the "Tree Assist"

SESION take into consideration

SESION take into consideration

Celina Sharma & Harris J - 24/7 (Lyrics) "24/7 I'm thinking about you"

Celina Sharma & Harris J - 24/7 (Lyrics) "24/7 I'm thinking about you"

Lil Baby Feat. Moneybagg Yo "All Of A Sudden" (WSHH Exclusive - Official Music Video)

Lil Baby Feat. Moneybagg Yo "All Of A Sudden" (WSHH Exclusive - Official Music Video)

How to use: Have to /  Don't have to / Must / Mustn't

How to use: Have to / Don't have to / Must / Mustn't

Time to SHOP & Decorate for HALLOWEEN 🎃

Time to SHOP & Decorate for HALLOWEEN 🎃

US' Bid to Hold Oil Fields in Northern Syria is Illegitimate

US' Bid to Hold Oil Fields in Northern Syria is Illegitimate

Some of the Best of Achmed | JEFF DUNHAM

Some of the Best of Achmed | JEFF DUNHAM

"Nearly As Good" by Bev Pegg & his Band

"Nearly As Good" by Bev Pegg & his Band

Under Black Helmet - Impulsive Behavior [MORD043]

Under Black Helmet - Impulsive Behavior [MORD043]

One-on-One with JD: VSS Mani addresses a wide array of investor queries with Axis Capital

One-on-One with JD: VSS Mani addresses a wide array of investor queries with Axis Capital

Walton Family Spends MILLIONS To PRIVATIZE Water

Walton Family Spends MILLIONS To PRIVATIZE Water

Cash in on Your Ideas | Brian Tracy

Cash in on Your Ideas | Brian Tracy

The BOO BOO Story From The Lively Lewis Show!!!

The BOO BOO Story From The Lively Lewis Show!!!

BEST GIANT VS TINY FOOD CHALLENGE || Coolest DIY Pranks And Large Food For 24 Hours By 123 GO! BOYS

BEST GIANT VS TINY FOOD CHALLENGE || Coolest DIY Pranks And Large Food For 24 Hours By 123 GO! BOYS