Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

MySQL: INDEXES are awesome

105.7K views on YouTube

#mysql #tutorial #course

— INDEX (BTree data structure)
— Indexes are used to find values within a specific column more quickly
— MySQL normally searches sequentially through a column
— The longer the column, the more expensive the operation is
— UPDATE takes more time, SELECT takes less time

— Single column index
CREATE INDEX last_name_idx
ON customers (last_name);

— Multi column index
CREATE INDEX last_name_first_name_idx
ON customers (last_name, first_name);