Database Optimization Techniques to Increase SQL SERVER Performance – Part III – Index on multiple columns
May 23, 2009 1 commentIndex on multiple columns for SQL performance
Since clustered index records the table and arranges the data according to the index key, SQL Server allows only one clustered index per table. This results in amazing performance and the worry arises when you need to order the data by more than one column. Since we can’t use clustered index for multiple columns, a unclustered index is used to gain an increase in performance. We can specify a key value for every unclustered index, plus the value obtained from cluster index; which acts as a pointer to the actual values when we need their data. If a unclustered index is keyed on the values needed for a given task then query engine will never be in need of visiting the actual rows. After learning everything it needs from the index and scope then it will visit the qualifying rows.
Related Posts
-
February 1, 2024
An intro to HTMX for web designers and web developers
HTMX for web designers and developers: Revolutionizing Web Development with HTMX As someone deeply involved in the world of web development for the last two and half decades, I've seen various trends come and go. Some exist almost permanently, but many just vanish in a few months or years. However,
PHP Programming, web design, Web Development, Web Development, web programming0 comments -
March 6, 2025
Does Writing Clean Code Still Matter in the Age of AI Coding?
For several years, a copy of Code Complete by Steve McConnell (free PDF) has been sitting on my desk. It’s one of those books that every developer intends to read (or re-read), yet in an age where AI tools like Gemini Code Assist GitHub Copilot and ChatGPT generate code in


