-
Notifications
You must be signed in to change notification settings - Fork 6
Inefficient Query
Thomas Shone edited this page Sep 18, 2021
·
2 revisions
Operational
An inefficient query is a query that takes significantly longer than it could with some optimizations.
It could be inefficient because it:
- Examines a large number of rows to return quite a small set
- Does a full table scan rather than using an index
- Doesn't pick an index
- Picks a Low Cardinality index
- Does a full scan sort
- Creates a temporary table
The way to fix this depends very much on your data set and how you're querying it.
In most cases creating, combining or changing an INDEX can solve the problem.
If in doubt, consult a Data Engineer or Database Administrator would be a good start.