Why Isn't My Query Using an Index? Databases for Developers: Performance #5
You've created your index. All it's columns appear in your query's where clause. There are no functions on them. But the database has still decided to go for a full table scan!
Why?!
This video explores some of the reasons why using an index may be slower than a full table scan. Including one of the most important reason: the clustering factor.
Need help with SQL?
Ask us over on AskTOM: https://asktom.oracle.com
Twitter: https://twitter.com/ChrisRSaxon
Daily SQL Twitter tips: https://twitter.com/SQLDaily
All Things SQL blog: https://blogs.oracle.com/sql/
Test your SQL Skills on the Oracle Dev Gym: https://devgym.oracle.com/
============================
The Magic of SQL with Chris Saxon
Copyright © 2020 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.
Видео Why Isn't My Query Using an Index? Databases for Developers: Performance #5 канала The Magic of SQL
Why?!
This video explores some of the reasons why using an index may be slower than a full table scan. Including one of the most important reason: the clustering factor.
Need help with SQL?
Ask us over on AskTOM: https://asktom.oracle.com
Twitter: https://twitter.com/ChrisRSaxon
Daily SQL Twitter tips: https://twitter.com/SQLDaily
All Things SQL blog: https://blogs.oracle.com/sql/
Test your SQL Skills on the Oracle Dev Gym: https://devgym.oracle.com/
============================
The Magic of SQL with Chris Saxon
Copyright © 2020 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.
Видео Why Isn't My Query Using an Index? Databases for Developers: Performance #5 канала The Magic of SQL
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Count Millions of Rows Fast with Materialized Views: Databases for Developers: Performance #6How do nested loop, hash, and merge joins work? Databases for Developers Performance #7Mysql Index Tutorial | Make websites 100 Times Faster!!! Query time from 2 Sec to 3 Milli SecondsWhy Postgres Query is Not Using IndexHow do SQL Indexes WorkHow to Create Database Indexes: Databases for Developers: Performance #4Does The Order Of Index Columns Matter?Oracle Hints Tutorial for improving performance with examplesWhat to Look for in Execution Plans: Databases for Developers: Performance #3Which Is Better? SQL vs NoSQLWhich Order Should Columns Go in an Index?: Finding All the Red Sweets Part 4How to Read an Execution Plan: Databases for Developers: Performance #1Columns and Data Types: Databases for Developers #2SQL Index |¦| Indexes in SQL |¦| Database IndexData Modeling: Databases for Developers #3Indexes in SQL Server | Use Indexes for Faster Search in SQL | SQL Interview QuestionsUse MySQL EXPLAIN for Query OptimizationHow to Filter with the WHERE clause in SQL