filmov
tv
SQL Index Isn't Always the Best Choice #shorts #sql
Показать описание
This database tutorial will tell you that as far as sql databases are concerned, a sql index doesn't necessarily mean better performance.
That's the case because even if a sql index is in place before you run a SELECT SQL query, your SQL database still has to decide whether to use it or not.
A SQL index will be used if it can be used and if the SQL database thinks that using it is the best way to complete your SQL query.
If it is not, a full-table scan might still be faster than a SQL index scan if at least 10 percent of the rows in the database table are being selected.
Enjoyed this sql indexes explained video? Make sure to subscribe to this database tutorial channel to learn more about both relational and non-relational database management systems, sql indexes and more things about databases such as database triggers and more!
#shorts #sql #database #software #mysql #data #developer #mariadb
That's the case because even if a sql index is in place before you run a SELECT SQL query, your SQL database still has to decide whether to use it or not.
A SQL index will be used if it can be used and if the SQL database thinks that using it is the best way to complete your SQL query.
If it is not, a full-table scan might still be faster than a SQL index scan if at least 10 percent of the rows in the database table are being selected.
Enjoyed this sql indexes explained video? Make sure to subscribe to this database tutorial channel to learn more about both relational and non-relational database management systems, sql indexes and more things about databases such as database triggers and more!
#shorts #sql #database #software #mysql #data #developer #mariadb