Database Index Fundamentals

Поділитися
Вставка
  • Опубліковано 19 лип 2024
  • This video explains the fundamental principles of indexing table columns in a database to speed up queries. It illustrates the difference between clustered indexes and non-clustered indexes, which are also known as secondary keys. It explains that the primary key of a table is normally the one and only clustered index, because this defines the sort order of the table, and that a table can have multiple non-clustered indexes. The video also mentions that database indexes are normally implemented behind the scenes as binary tree data structures, because these allow for fast searching.

КОМЕНТАРІ • 23

  • @sergeypoprygin2670
    @sergeypoprygin2670 3 роки тому +20

    author, your voice is perfect for the discovery channel

  • @fireburn95rs
    @fireburn95rs 3 роки тому +8

    Holy shit dude - this helped me understand the concept so easily. I read a few prior, but they were more in-depth, so was harder to follow. This vid helped me go to those articles and understand them better. You dont use jargon and I love that. thanks!

  • @Geojex
    @Geojex 2 роки тому +4

    Great quick overview and refresher!

  • @carlesg0n
    @carlesg0n 5 років тому +6

    please more in-depth technical vids :)

  • @charlikchaplik
    @charlikchaplik 2 роки тому +4

    Very good explanation, thank you!

  • @nicoqueijo
    @nicoqueijo 4 роки тому +4

    So would updating a record to a non-clustered index be O(log n)? I'm assuming it's stored as a balanced tree?

  • @shreyasrai
    @shreyasrai 2 роки тому

    Wouldnot modifying the data impact both clusterd index and non-clustered index if the records are stored in binary tree?

  • @eagleofsharm
    @eagleofsharm 2 роки тому +1

    Excellent Explained. THANK YOU

  • @normanmunge
    @normanmunge 5 місяців тому

    What do you mean by secondary storage for a clustered and non-clustered index?

  • @tmanley1985
    @tmanley1985 2 роки тому

    Don't you mean that the clustered index is stored as a B-Tree and not a Binary Tree data structure? Even this doesn't this depend on the database engine? I may be mistaken about this.

  • @arnabmukherjee3255
    @arnabmukherjee3255 3 роки тому +1

    Great content..subscribed!!1

  • @kairu_b
    @kairu_b 2 роки тому +1

    Awesome

  • @attackN
    @attackN 6 місяців тому +1

    Ben Dover

  • @Grotesque18
    @Grotesque18 2 роки тому

    too brief