Database Indexing for Dumb Developers

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 เม.ย. 2021
  • This video explains what happens under the hood when indexing a database and explains why it can lead to performance benefits.

ความคิดเห็น • 44

  • @futhedude4848
    @futhedude4848 9 หลายเดือนก่อน +14

    recap:
    7:08 full table scan
    12:26 binary search
    13:56 we shouldn't add index at everything

  • @brianfan715
    @brianfan715 12 วันที่ผ่านมา +3

    BEST Indexing explanation video on TH-cam

    • @jay_wright_thats_right
      @jay_wright_thats_right 5 วันที่ผ่านมา

      It's good but it's not the best on TH-cam. There are plenty of videos that all can be the BEST. You just understand this video because you lacked knowledge or understanding of words used in other videos.

  • @FreeTheFresh
    @FreeTheFresh ปีที่แล้ว +31

    This is far and away the best indexing video I have watched. Every other one barely goes into how indexing works under the hood, or use analogies that don't really make sense. Keep up the awesome content!

    • @Garentei
      @Garentei 10 หลายเดือนก่อน +1

      It’s not that accurate though. He used binary search instead of a B tree (though he did briefly mention it) but I think that misguides the viewer into thinking that’s also what is happening. It also fails to explain the importance of avoiding reading from disk (the whole point of using B trees over AVL or red black trees for example).

  • @stratboy2
    @stratboy2 5 หลายเดือนก่อน

    Finalyy a tut that really explains what indexes are... The only one till now. Than you!

  • @hiteshsuthar1097
    @hiteshsuthar1097 2 ปีที่แล้ว +4

    Now i understand this system design term... Please make more videos on cool stuffs like this.

  • @futhedude4848
    @futhedude4848 9 หลายเดือนก่อน +5

    Great explaination, can you do B-tree and Hash in DB Indexing?

  • @satyajeetsahu5270
    @satyajeetsahu5270 2 หลายเดือนก่อน +1

    This video explained indexing so simply that I can't forget it ever!!!

  • @hank91918
    @hank91918 3 ปีที่แล้ว +2

    whoa! fantastic lesson! More content please!

  • @williamse.barreras.2325
    @williamse.barreras.2325 ปีที่แล้ว +2

    Study it tooo long ago, recently my boss put me on the spot with ‘what is an index in db’ haha. Now I know, thanks mate. Good video

  • @javohir307
    @javohir307 2 ปีที่แล้ว +2

    great tutorial bro, keep it up, good luck to your channel !!

  • @MONTI2710
    @MONTI2710 5 หลายเดือนก่อน

    Hands down the best tutorial on index❤

  • @lukechopper22
    @lukechopper22 3 ปีที่แล้ว +1

    Very good tutorial. Thank you.

  • @sarahharb6773
    @sarahharb6773 3 ปีที่แล้ว +1

    Super informational! Thank you.

  • @user-fd3yr5eo4g
    @user-fd3yr5eo4g 6 หลายเดือนก่อน

    Very well explained. Thanks for that

  • @_indrid_cold_
    @_indrid_cold_ 18 วันที่ผ่านมา

    Fantastic. Thank you very much.

  • @sakshichadha9410
    @sakshichadha9410 8 หลายเดือนก่อน

    best video so far

  • @dawid_dahl
    @dawid_dahl 2 ปีที่แล้ว +1

    Awesome, thank you.

  • @seriouslyiknowhowtoread
    @seriouslyiknowhowtoread 3 หลายเดือนก่อน

    Hands down best video

  • @AndrewKlem
    @AndrewKlem หลายเดือนก่อน

    This was so helpful. Thank you!

  • @rokibulhasan2005
    @rokibulhasan2005 หลายเดือนก่อน

    Quality lecture. Thanks...

  • @als5321
    @als5321 3 ปีที่แล้ว +3

    can you do something like this for mongoDB?

  • @babayaga6871
    @babayaga6871 หลายเดือนก่อน

    Thank you !

  • @victorhaynes508
    @victorhaynes508 2 หลายเดือนก่อน

    Wow you made this easy. Great video

  • @hiteshsuthar1097
    @hiteshsuthar1097 2 ปีที่แล้ว

    Now i understand this system design term... Please make more videos on cool stuffs like this. also Tsm

  • @gadgetboyplaysmc
    @gadgetboyplaysmc หลายเดือนก่อน

    More on the performance hit of indices on WRITES. How does it work?
    Does it:
    A. Insert the new row in the TABLE (O(1)). Find where the index should be placed (O(logn)), insert it there (O(1)).
    Or does it:
    B. Insert the new row in the TABLE (O(1)). Query the whole TABLE again (constant). Sort it again (O(idk)). Save it in the index (O(1)).
    ---
    I'm guessing A, but I'm not even sure if that's possible lol. I guess the "finding where the index should be placed" would be the slow part and most likely it would be equivalent as doing the same SELECT query for that column as well? Since you mentioned that SELECT is O(logn):
    Essentially writes would be O(logn). Would that be, correct?

  • @vodapramod
    @vodapramod 2 ปีที่แล้ว +1

    Laith, Please do a course on Database
    Please. Please. PLEASE

  • @stefankyriacou7151
    @stefankyriacou7151 6 หลายเดือนก่อน

    This was a solid explanation

  • @hamed9327
    @hamed9327 11 หลายเดือนก่อน

    thank you so much

  • @shivamtodwal9117
    @shivamtodwal9117 10 หลายเดือนก่อน

    Best video on Indexing

  • @tymo3391
    @tymo3391 2 ปีที่แล้ว

    great tutorial!

  • @user-yj9vu2sd1b
    @user-yj9vu2sd1b 4 หลายเดือนก่อน

    Amazing!!!😍

  • @eudaimonia2120
    @eudaimonia2120 14 วันที่ผ่านมา

    Excellent🥳

  • @ukaszkiepas57
    @ukaszkiepas57 8 วันที่ผ่านมา

    thank you very much :)

  • @tpa3437
    @tpa3437 2 หลายเดือนก่อน

    Is this somehow how it works in Windows when it indexes files for file search?

  • @mohammedg485
    @mohammedg485 2 ปีที่แล้ว +2

    i was watching happily till i read the title

  • @tamaratayler
    @tamaratayler หลายเดือนก่อน

    You explained the unexplainable, that calls for the glock glock 3000

  • @manmeetkaur7130
    @manmeetkaur7130 2 หลายเดือนก่อน

    If i understand by this video, am i dumb ?

  • @SB-ew4ve
    @SB-ew4ve 2 ปีที่แล้ว +2

    But you don’t have to call me dumb though this is already enough 😞

  • @zdravkobeykov
    @zdravkobeykov 2 ปีที่แล้ว +1

    I don't usually subscribe, but ...

  • @mannixd752
    @mannixd752 16 วันที่ผ่านมา

    DUMP? Well,....

  • @overtonwindows
    @overtonwindows 16 วันที่ผ่านมา

    As a dumb developer I must say I didnt understand.

  • @0sliter0
    @0sliter0 2 หลายเดือนก่อน

    I hate that you couldn't cut a wait from the animation...