TableAdapter Performance

  • Thread starter Thread starter Programatix
  • Start date Start date
P

Programatix

Hi,

Have anyone ever benchmark the TableAdapter performance compared to
DataTable's Load method? I found out that the DataTable's Load method is
about 10x faster than TableAdapter's Fill method.

I used the same SELECT query and DataSet (predefined), for both test.

For the DataTable's Load method, we first need to create a DataReader.

Anyone know why? Or is there any other configuration needed to make
TableAdapter faster?

Thanks for reading.
 
I would have to see what you are attempting to do to better understand. One
of my former coworkers did some tests with the TableAdapter that absolutely
smoked. It was compared to filling DataSets, however, so the tests may be
invalid in your world.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
The DataTable's Load method also fill the dataset. But it reads from a
DataReader that we need to supply. Take a look at the Load method for
DataTable.
 
Hmmm.. There are 4 DataTables in the DataSet. Each is linked with each other
in a seriel form, meaning that table 1 is related to table 2, table 2 is
related to table 3 and so on.

Why?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top