Database Indexing for Dumb Developers

Поделиться
HTML-код
  • Опубликовано: 11 апр 2021
  • This video explains what happens under the hood when indexing a database and explains why it can lead to performance benefits.

Комментарии • 56

  • @brianfan715
    @brianfan715 Месяц назад +9

    BEST Indexing explanation video on RUclips

    • @jay_wright_thats_right
      @jay_wright_thats_right Месяц назад

      It's good but it's not the best on RUclips. 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.

  • @futhedude4848
    @futhedude4848 10 месяцев назад +17

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

  • @FreeTheFresh
    @FreeTheFresh Год назад +38

    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 Год назад +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 6 месяцев назад +1

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

  • @williamse.barreras.2325
    @williamse.barreras.2325 Год назад +3

    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

  • @hiteshsuthar1097
    @hiteshsuthar1097 2 года назад +5

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

  • @satyajeetsahu5270
    @satyajeetsahu5270 3 месяца назад +1

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

  • @santoshpoudel1853
    @santoshpoudel1853 16 дней назад

    i have looked up to many videos and just came across this detailed best explanation

  • @javohir307
    @javohir307 3 года назад +2

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

  • @futhedude4848
    @futhedude4848 10 месяцев назад +6

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

  • @MONTI2710
    @MONTI2710 6 месяцев назад

    Hands down the best tutorial on index❤

  • @hank91918
    @hank91918 3 года назад +2

    whoa! fantastic lesson! More content please!

  • @gadgetboyplaysmc
    @gadgetboyplaysmc 2 месяца назад

    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?

  • @xikusyaa
    @xikusyaa 6 дней назад

    there are a lot of sh** RUclipsrs who upload trash in the name of content, but you are opposite to those. Thank-you for this precise and easy on mind tutorial!

  • @hiteshsuthar1097
    @hiteshsuthar1097 2 года назад

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

  • @lukechopper22
    @lukechopper22 3 года назад +1

    Very good tutorial. Thank you.

  • @sarahharb6773
    @sarahharb6773 3 года назад +1

    Super informational! Thank you.

  • @user-fd3yr5eo4g
    @user-fd3yr5eo4g 7 месяцев назад

    Very well explained. Thanks for that

  • @als5321
    @als5321 3 года назад +3

    can you do something like this for mongoDB?

  • @victorhaynes508
    @victorhaynes508 3 месяца назад

    Wow you made this easy. Great video

  • @AndrewKlem
    @AndrewKlem 2 месяца назад

    This was so helpful. Thank you!

  • @vodapramod
    @vodapramod 2 года назад +1

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

  • @seriouslyiknowhowtoread
    @seriouslyiknowhowtoread 4 месяца назад

    Hands down best video

  • @AdrianAngeltveit-mr1nq
    @AdrianAngeltveit-mr1nq 24 дня назад

    I have a program which is doing a lot of queries against a table. The problem is that the program is too slow, and it's updating many records. How can I speed it up? Can i index columns used in searches that is not getting updated? Or does indexing get slow eitherway if i update records in a table with indexed columns?

  • @stefankyriacou7151
    @stefankyriacou7151 7 месяцев назад

    This was a solid explanation

  • @rokibulhasan2005
    @rokibulhasan2005 2 месяца назад

    Quality lecture. Thanks...

  • @abdulhamedeid935
    @abdulhamedeid935 26 дней назад

    what annotation app are you using

  • @tpa3437
    @tpa3437 3 месяца назад

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

  • @dawid_dahl
    @dawid_dahl 2 года назад +1

    Awesome, thank you.

  • @_indrid_cold_
    @_indrid_cold_ Месяц назад

    Fantastic. Thank you very much.

  • @uvieemma3854
    @uvieemma3854 5 дней назад

    100% dope explanation of indexing

  • @sakshichadha9410
    @sakshichadha9410 9 месяцев назад

    best video so far

  • @CheekySensei
    @CheekySensei 20 дней назад +1

    Increase to 1.5x speed for smoother flow

  • @shivamtodwal9117
    @shivamtodwal9117 11 месяцев назад

    Best video on Indexing

  • @tymo3391
    @tymo3391 2 года назад

    great tutorial!

  • @eudaimonia2120
    @eudaimonia2120 Месяц назад

    Excellent🥳

  • @user-yj9vu2sd1b
    @user-yj9vu2sd1b 5 месяцев назад

    Amazing!!!😍

  • @babayaga6871
    @babayaga6871 2 месяца назад

    Thank you !

  • @potaetoupotautoe7939
    @potaetoupotautoe7939 10 дней назад

    my kind of content

  • @tamaratayler
    @tamaratayler 2 месяца назад

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

  • @hamed9327
    @hamed9327 Год назад

    thank you so much

  • @ukaszkiepas57
    @ukaszkiepas57 Месяц назад

    thank you very much :)

  • @mohammedg485
    @mohammedg485 2 года назад +2

    i was watching happily till i read the title

  • @MuhammadAli-fn4xb
    @MuhammadAli-fn4xb 19 дней назад

    Awesome

  • @harshmittal63
    @harshmittal63 6 дней назад

  • @SB-ew4ve
    @SB-ew4ve 2 года назад +2

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

  • @zdravkobeykov
    @zdravkobeykov 3 года назад +1

    I don't usually subscribe, but ...

  • @manmeetkaur7130
    @manmeetkaur7130 3 месяца назад

    If i understand by this video, am i dumb ?

    • @user-jm2gu4zb7c
      @user-jm2gu4zb7c 14 часов назад

      Apparently... I also think it s a stupid title, and to call your viewers dumb... Why?

  • @avinashsigarakanti8607
    @avinashsigarakanti8607 12 дней назад

    developers could have explained this in 5 mins in very much better way

  • @mannixd752
    @mannixd752 Месяц назад

    DUMP? Well,....

  • @overtronwindows
    @overtronwindows Месяц назад

    As a dumb developer I must say I didnt understand.

  • @mma-dost
    @mma-dost 16 дней назад

    the title of the video is pretty much embarrassing to click on.
    Question to me : Am I Dumb ? No
    So dont click on the video.

  • @0sliter0
    @0sliter0 3 месяца назад

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