Database Indexing for Dumb Developers

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

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

  • @FreeTheFresh
    @FreeTheFresh 2 года назад +77

    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 Год назад +2

      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).

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

      ​@@GarenteiOnly after reading your comment, things seemed to make sense. Any resources for fine-tuning DB index knowledge? Please share if you got any. Thank you in advance!

  • @futhedude4848
    @futhedude4848 Год назад +34

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

  • @satyajeetsahu5270
    @satyajeetsahu5270 8 месяцев назад +5

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

  • @brianfan715
    @brianfan715 6 месяцев назад +21

    BEST Indexing explanation video on RUclips

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

      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.

  • @williamse.barreras.2325
    @williamse.barreras.2325 2 года назад +10

    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

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

    In my opinion, this explanation presents a very clear analysis and straightforward approach to database indexing.

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

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

  • @stratboy2
    @stratboy2 11 месяцев назад +1

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

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

    I have watched numerous videos, but this is the best explanation so far. Kudos.

  • @gadgetboyplaysmc
    @gadgetboyplaysmc 8 месяцев назад +1

    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?

  • @santoshpoudel1853
    @santoshpoudel1853 5 месяцев назад

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

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

    This was way too easy to understand. Thank you for the explanation.

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

    I came for indexing, but couldn't help but notice that Laith is making $54 million while my boy Todd is making $27k....Laith must be the CEO

  • @futhedude4848
    @futhedude4848 Год назад +6

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

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

    Hands down the best tutorial on index❤

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

    can you do something like this for mongoDB?

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

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

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

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

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

    Watch this video on 1.25x speed. You're welcome!

    • @aron2922
      @aron2922 7 дней назад

      It's for dumb developers

  • @AbuBakrSadiqi-b7t
    @AbuBakrSadiqi-b7t Год назад +1

    Very well explained. Thanks for that

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

    Great explanation.

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

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

  • @Cant_think_of_any
    @Cant_think_of_any 5 месяцев назад

    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!

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

    Thank you very much for the video.
    I have one question:
    What happens, if I execute a query on a non indexed column? Based on your explanation, the Blocks stay on disc and when B and I are found by an index, they can be loaded explicitly.
    When there is no index and I execute a query, is the "load from disc into memory" operation done at runtime?
    Thanks a lot

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

    whoa! fantastic lesson! More content please!

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

    Great explanation! Thanks!

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

    Great explanation for database indexing. Thanks!

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

    Hands down best video

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

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

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

    But even though we significantly reduced the search time, we have increased the time required to add a record right?

  • @uvieemma3854
    @uvieemma3854 5 месяцев назад

    100% dope explanation of indexing

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

    Super informational! Thank you.

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

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

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

    Wow you made this easy. Great video

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

    Very good tutorial. Thank you.

  • @tibebetech4867
    @tibebetech4867 День назад

    Excellent!

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

    Fantastic. Thank you very much.

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

    Awesome, thank you.

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

    This was a solid explanation

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

    This index are stored in disk or memory?

  • @AdrianAngeltveit-mr1nq
    @AdrianAngeltveit-mr1nq 6 месяцев назад

    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?

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

    Best video on Indexing

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

    This was so helpful. Thank you!

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

    thank you so much

  • @KamronbekAbdumannonov-m6u
    @KamronbekAbdumannonov-m6u 5 месяцев назад

    Great explanation!

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

    Quality lecture. Thanks...

  • @potaetoupotautoe7939
    @potaetoupotautoe7939 5 месяцев назад

    my kind of content

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

    what annotation app are you using

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

    best video so far

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

    i was watching happily till i read the title

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

    Thank you

  • @anuragsekhri2315
    @anuragsekhri2315 3 дня назад

    well explained

  • @user-pp4gh4gb2w
    @user-pp4gh4gb2w 3 месяца назад

    I like Laith's salary

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

    Thank you !

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

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

  • @mihirkumar2788
    @mihirkumar2788 2 дня назад

    Helpful, ❤ from India

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

    great tutorial!

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

    thank you very much :)

  • @ТатьянаЛоскутова-у3м
    @ТатьянаЛоскутова-у3м 10 месяцев назад

    Amazing!!!😍

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

    Excellent🥳

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

    thanks man

  • @MuhammadAli-fn4xb
    @MuhammadAli-fn4xb 6 месяцев назад

    Awesome

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

    I don't usually subscribe, but ...

  • @harshmittal63
    @harshmittal63 5 месяцев назад

  • @CheekySensei
    @CheekySensei 6 месяцев назад +1

    Increase to 1.5x speed for smoother flow

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

    Laith is getting a fat check $

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

    If i understand by this video, am i dumb ?

    • @JessRasmussen-b1m
      @JessRasmussen-b1m 5 месяцев назад

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

  • @mma-dost
    @mma-dost 5 месяцев назад

    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.

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

    DUMP? Well,....

  • @avinashsigarakanti8607
    @avinashsigarakanti8607 5 месяцев назад

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

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

    As a dumb developer I must say I didnt understand.

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

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

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

    Thank you!