Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index View or Table?
Message
De
10/03/2016 06:46:41
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Indexation
Titre:
Index View or Table?
Versions des environnements
SQL Server:
SQL Server 2008 R2
Divers
Thread ID:
01632781
Message ID:
01632781
Vues:
44
Hi,

a system I have has a table called Transactions, then a view based on that called viewTransactions and then another view based on the first view called viewTopTransactions.

Should I create indexes on the underlying table and that will speed up queries against the views? Or should I create indexes on the views? or should I index both table and views?

The queries are like this:

SELECT DISTINCT [PNRStatus] FROM [viewTransactions] ORDER BY [PNRStatus]
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform