-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
SQLExercise includes a SQL queryExercise includes a SQL query
Description
Searching table columns that have not been indexed will typically result in a full table scan. This can be very slow and resource-intensive, increasing the likelihood of performance bottlenecks.
Example scenario
The following SQL will result in a full table scan if some_column is not indexed:
BEGIN TRANSACTION;
SELECT * FROM my_table WHERE some_column = 'some_value';
-- More actions here, then:
COMMIT TRANSACTION;Example prompt
How can I optimize this transaction?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
SQLExercise includes a SQL queryExercise includes a SQL query