Solved

Update Access database from a DataSet takes way too long

Posted on 2006-10-24
2
359 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…

749 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