Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding more fields into a dataset
Message
De
22/05/2013 15:16:38
 
 
À
22/05/2013 10:41:28
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01574472
Message ID:
01574525
Vues:
38
>>Always depends on the data at hand, but most uniform best times should be reached by piping the list of PK's into a temp table with index and inner joining to base select table, esp on longer PK-lists.
>
>Can't do this one but will do the benchmarks. This is a contained option and I doubt that visual notification of speed would be a factor.

I expect SQL server to execute it this way - at least for longer list len, perhaps switching strategies depending in the list given in the SQL.
Update: on reading Naomi's link I may have overestimated SQL optimizer capabilities, but basic gut instinct was correct ;-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform