Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to delete a group of rows from a datatable?
Message
De
11/12/2007 08:33:25
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
11/12/2007 03:50:37
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01274269
Message ID:
01274747
Vues:
10
>Thank you Cetin,
>
>I've solved it, but think you're solution is more like it should be.
>


Joaquim,

You need to be carefuol though, .Select is a performance killer if your deletes are called from inside looping structures. We had to switch from .Select to a foreach logic because the .select slowed down program execution terribly.

We had a loop that was using a .select which when profiled was doing .select over 1 million times. The app took over 3 hours to run.

So just be careful and use it when it makes sense.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform