G
Guest
Please redirect me to a better newsgroup if this one isn't correct.
I have a major performance problem using a SqlDataAdapter's Update() to
record a datatable into our database. And it's no easy feat. We basically
record data for about 2-3 minutes, generating about 4000 records on a
particular table. When it comes time to update the dataset, it can take
between 1-2 minutes for the Update() routine to run. The table contains only
three fields (unique id of parent, position, and data value). In the
database, we can already have on the order of 4 million records or so,
easily. the unique id of parent field has an index on it.
Basically, I'm stuck on how to solve this. One option would be to log each
piece of data as it appears, but we're optimizing that to the millisecond
because this is dealing with radiation detection and our process loop needs
to be as spry as possible. Without an index on the parent ID, it noticeably
decreases, but then retrieving the data becomes problematic when it searches
through 5 million records for a set of 36 matching a particular id. We need
it quick on the processing/reporting end too.
So, I'm stuck. Does anybody have any suggestions on how to optimize
something like this? We'd like it to be under 10 seconds, and even that may
be annoying in the field. Appreciate any help I can get.
I have a major performance problem using a SqlDataAdapter's Update() to
record a datatable into our database. And it's no easy feat. We basically
record data for about 2-3 minutes, generating about 4000 records on a
particular table. When it comes time to update the dataset, it can take
between 1-2 minutes for the Update() routine to run. The table contains only
three fields (unique id of parent, position, and data value). In the
database, we can already have on the order of 4 million records or so,
easily. the unique id of parent field has an index on it.
Basically, I'm stuck on how to solve this. One option would be to log each
piece of data as it appears, but we're optimizing that to the millisecond
because this is dealing with radiation detection and our process loop needs
to be as spry as possible. Without an index on the parent ID, it noticeably
decreases, but then retrieving the data becomes problematic when it searches
through 5 million records for a set of 36 matching a particular id. We need
it quick on the processing/reporting end too.
So, I'm stuck. Does anybody have any suggestions on how to optimize
something like this? We'd like it to be under 10 seconds, and even that may
be annoying in the field. Appreciate any help I can get.