CREATE INDEX IX___NULL
ON ()
WHERE IS NULL;
π§ Where to put your actual names?
Replace with your table name
Replace with the column you want to select
Replace with the column that contains NULL values
Creating a filtered index on only the rows where a large column is NULL helps the database avoid a full table scan and makes the query 10xβ100x faster.
Top comments (0)