Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bypassing the 16 field limit in index
Message
De
31/01/2014 14:24:03
 
 
À
30/01/2014 19:17:56
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Indexation
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01592711
Message ID:
01592778
Vues:
58
>SQL Server only allows a maximum of 16 fields to be part of an index. Has anyone found a way to workaround that or an approach that could be considered to target at being optimized over 16 fields?
>

I'm not aware of any way to get around the limit on the # of columns in an index.

But here's a question - have you ever profiled the existing queries to see which columns are being used most often? You mentioned a little over two dozen possible options for users. I wouldn't be surprised if a much smaller # (certainly lower than 16 ) would account for a large % of the total user queries.

Perhaps you could combine that information with a scenario of a two-pass process....to first query on the columns where optimization can occur.

Just a thought. But when offering that many columns for someone to filter on, I think it's worth profiling how often they get used.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform