DataSet.Tables["table1"] or .Tables[1]

  • Thread starter Thread starter Ondrej Sevecek
  • Start date Start date
O

Ondrej Sevecek

Hello,
IS? searching for table by name (inspite of number) MUCH more slower than
by number? Or the speeds and loads are comparable and quite same efficient?

Thanks Ondra.
 
Theoreticly the looking for an item in a collection using a key would be a
bit slower,

but I do think this is subject to micro optimization and actual not enough
of an issue to be concerned about. Other things in your ADO.NET code will
have greater impact on your performance, like your queries etc.
 
In theory yes, in reality, no, unless you have, oh about 1 million
datatables in the dataset.
 
Back
Top