Jump to content

Recommended Posts

Posted

Hey everyone.

 

I decoded to write a little test app to compare the speed of DataSet / Table adapter to 'LINQ to SQL'.

 

This test focused solely on inserts

 

The app loops 10,000 times, inserting a row into a datatable (or in LTS, it adds the row to the table equivalent in the DataContext)

 

Results

=====

 

 

It took the code 293 ms to load the rows into the DataTable, and then 16030ms to update the database using the tableadapter.

 

It took 474ms to load the rows into the datacontext, and then a whopping 29550ms to complete the .SubmitChanges()

 

 

How can this be, I was expecting LTS to win hands down,but for now it looks like I'll be sticking to my datasets!

 

More...

 

View All Our Microsoft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...