Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataSets, Primary Keys, and DataTable.Rows.Find()
Message
De
24/03/2006 00:34:01
 
 
À
23/03/2006 20:30:29
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01106308
Message ID:
01107273
Vues:
19
Hi, David,

I did a test using VS2005, where I pulled down 100,000 rows into a Dataset, and then searched for a single row....using both a FIND and a SELECT.

The SELECT performed almost as fast as the FIND. The SELECT ran in just over a second, and the FIND ran in just under a second. I was a bit surprised how close they were. I don't know for a fact what ADO.NET is doing under the hood when you create a primary key. So perhaps a SELECT is fine even for a single primary row.

Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform