Database Indexing Explained (with PostgreSQL)

Database Indexing Explained (with PostgreSQL)

Hussein Nasser

3 года назад

291,771 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@chrismenui7344
@chrismenui7344 - 18.11.2023 09:00

how to performance tune? explain analyze select ...(performance report)
table vs index(two different data structures on the disk)
slow vs fast

index scan
no index scan
like

Ответить
@berndeckenfels
@berndeckenfels - 16.11.2023 05:04

That plan analyze of pg is disappointing unhelpful

Ответить
@raj_kundalia
@raj_kundalia - 10.11.2023 20:30

thank you!

Ответить
@mustafaturkoz
@mustafaturkoz - 09.09.2023 12:03

great video

Ответить
@SiimKoger
@SiimKoger - 08.09.2023 10:35

Best introduction video on indexing I've seen. I feel like I finally understood the concept. Thabks. The "like" expression was a great addition.

Ответить
@joumaamohamad797
@joumaamohamad797 - 03.09.2023 16:13

Thank you for clarifying concept database indexing.
I appreciate your insights, but I'm still a bit puzzled about a few things.

While I understand that traditional relational databases have robust implementations of indexing, I'm curious to know why one might opt for search engines, like Elasticsearch, over them. Specifically, how does Elasticsearch indexing differ from that of relational databases?

Moreover, are there specific challenges or limitations associated with relational database indexing that Elasticsearch indexing can address more effectively?

I'd greatly appreciate any further insights you can provide on this topic.

Thank you in advance for your time and assistance.

Ответить
@franciscandelaria3535
@franciscandelaria3535 - 01.09.2023 16:15

Thank you for this informative video❤. You're worth subscribing❤

Ответить
@rajveersingh2056
@rajveersingh2056 - 25.08.2023 23:35

Like %za% is slow,
however I feel,
Like za% would benefit from index

Ответить
@geoafrikana
@geoafrikana - 18.08.2023 11:58

Great explanation. Thanks

Ответить
@chrishabgood8900
@chrishabgood8900 - 30.07.2023 07:47

Will putting an index on a View help?

Ответить
@camila8ym
@camila8ym - 13.07.2023 22:20

Great content!!! Thanks!

Ответить
@giovanni8939
@giovanni8939 - 08.07.2023 22:01

Would be nice to know if the index helps in case the expression is "like 'Za%'". Intuitively it should be able to the rows starting with Za and take advantage of the index, what do you think?

Ответить
@krunalshrimali4471
@krunalshrimali4471 - 28.06.2023 20:45

How to make queries containing like conditions faster?

Ответить
@krunalshrimali4471
@krunalshrimali4471 - 28.06.2023 20:40

Which one is better, having different indexes for different columns or having one index containing multiple columns and can you give examples of in which case which option to go for?

Ответить
@fintech1378
@fintech1378 - 28.05.2023 00:34

awesome

Ответить
@abhigyansharma9108
@abhigyansharma9108 - 16.05.2023 13:46

Wooooooooowwwwww <3

Ответить
@thegodfatheram
@thegodfatheram - 15.04.2023 16:29

Amazing 🤍🇮🇶

Ответить
@md.mohiuddin
@md.mohiuddin - 10.04.2023 19:30

Thanks. It is a really amazing lesson I have learnt from this discussion.

Ответить
@sokhomsovichea2329
@sokhomsovichea2329 - 21.02.2023 10:03

Thanks you so much for such a details explanation

Ответить
@benstemen469
@benstemen469 - 31.12.2022 01:53

this was a nice demonstration of indexing, thanks!

Ответить
@smeetkothari5160
@smeetkothari5160 - 21.12.2022 21:11

@Hussien Naseer can you do same for mongodb and lookups

Ответить
@sujoykarmaker8467
@sujoykarmaker8467 - 23.11.2022 22:16

You are a gift from God for us backend developers.

Ответить
@sanskarkaazi3830
@sanskarkaazi3830 - 01.11.2022 10:12

What is the best way to use instead of Like query if some similar query needs to be implemented.
Use fullTextSearch or elasticSearch or any other things or is there a way?

Ответить
@calvio2835
@calvio2835 - 31.10.2022 02:15

what a low effort video. went through the whole "what is an index" section all while showing a black terminal screen

Ответить
@AjaySharma-vz9ei
@AjaySharma-vz9ei - 14.09.2022 18:58

This was simply wow 👏🏻

Ответить
@abdusamadabdullakhanov518
@abdusamadabdullakhanov518 - 27.08.2022 15:06

in this quick video I jumped into Database Flow world!!! really appreciate your work, bro

Ответить
@teodorhfb
@teodorhfb - 17.08.2022 19:51

Awesome explanation

Ответить
@esantix
@esantix - 21.07.2022 06:05

Thanks for your time! Great intro to indexes

Ответить
@paulmouatib9999
@paulmouatib9999 - 20.07.2022 10:07

Ok so is there a smarter way to do the like query?

Ответить
@souravpurohit3348
@souravpurohit3348 - 12.07.2022 19:56

Nasser, Your videos are really informative and it helps me picture the topic . More power to you , god bless

Ответить
@shasha6538
@shasha6538 - 24.06.2022 06:42

Video is good but I was also expecting clustered index and non clustered index

Ответить
@aki3774
@aki3774 - 17.06.2022 16:43

Why did '%Zs%' execute so much faster than 'Zs'? Because of cache again?

Ответить
@rabbyhossain6150
@rabbyhossain6150 - 09.06.2022 17:00

I wonder how BTree works for string type

Ответить
@slahomar1497
@slahomar1497 - 09.06.2022 12:36

I have learned in this video more than I learned in a complete university semester

الله يحفظك ❣

Ответить
@user-ky2fw9kw7m
@user-ky2fw9kw7m - 07.06.2022 23:58

Just perfect! Thank ya!

Ответить
@BearVodkaAndValenki
@BearVodkaAndValenki - 30.05.2022 17:33

Thank's man, very useful info)

Ответить
@chizuru1999
@chizuru1999 - 18.05.2022 21:31

even with indexong a table in our production takes more than 2 minutes to run... 😂🥱

Ответить
@Zipuvan
@Zipuvan - 12.05.2022 12:08

Jajksi <3 hahahha tnx for the video man

Ответить
@shadab8798
@shadab8798 - 24.04.2022 04:46

I ran the same command "explain analyze select id from country where id = 8" on a table named country which I have but it was showing "Heap Fetches: 1"
I am on postres version 9.3
Any idea why is that?

Ответить
@sanjaybhatikar
@sanjaybhatikar - 23.04.2022 07:27

Love it, thank you :)

Ответить
@paathshala7686
@paathshala7686 - 29.03.2022 15:22

Why the "like" command took less time than the actual "select" command with no "like"? Was that also cached?
@HusseinNasser Just needed some explanation over that !?

Ответить
@IBITZEE
@IBITZEE - 22.02.2022 17:14

good info... thanks...

very interested in how:
- a dattabase decide in what page save a record
- how variable size rows are stored (a page can have 1 row... or 10 rows)
- what if a record is bigger than the page size?

keep up----

Ответить