Solved

Update Access database from a DataSet takes way too long

Posted on 2006-10-24
2
354 Views
Last Modified: 2012-06-22
I am using C# to make some data sets for an Access database.  When I save a data set (using an OdbDbDataAdapter) that has 3500 rows added to an originally empty table it takes 45-50 seconds to do the insert.  I was using the command builder to make the insert command so I thought I would make my own stored proc and try that - it didn't help.  I also need to save a set of 58,000 records and it takes 15 minutes or so using the command builders insert command and, having tried making my own for the other, I'm guessing it's not going to help there either. That seems way out of line - what is going on?  What can I do to speed this up.  It's almost useless. I've also done an update of one field in a data set and saving it also takes the same (too much) time.
Thanks

0
Comment
Question by:thresholds
2 Comments
 
LVL 11

Accepted Solution

by:
anyoneis earned 250 total points
ID: 17801365
I am getting 5000 records updated in 12.5 seconds. They are small - three columns. I could not find anything that would increase this performance. Sorry!

David
0
 
LVL 15

Expert Comment

by:SRigney
ID: 17804191
Access itself is slower, you could try finding a different database, something that is faster, MySQL, SqlServer Express, something like that.

If you are still really hurting, you could possibly go down the path of trying to insert the data in VB6 with ADO and wrapping that with your c# class, but I would expect this to be even slower.   The size of your 58,000 rows is probably the real issue, it's just more than what access is able to handle easily.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Article by: Ivo
Anonymous Types in C# by Ivo Stoykov Anonymous Types are useful when  we do not need to follow usual work-flow -- creating object of some type, assign some read-only values and then doing something with them. Instead we can encapsulate this read…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now