CREATE INDEX IX_User_Email ON Users(Id) INCLUDE (Email, CreatedAt)
Why this matters
-
Eliminates key lookups
-
Massive speedups for read-heavy queries
Daily micro-tips for C#, SQL, performance, and scalable backend engineering.
CREATE INDEX IX_User_Email ON Users(Id) INCLUDE (Email, CreatedAt)
Eliminates key lookups
Massive speedups for read-heavy queries