Hi
I was wondering if anybody could give me some advice on why I feel that the
updates in my application feel "slow".
The application I've written downloads from an SQL Server Database, stores
this data in a DataSet, values are changed and then I use the Update command
to write any changes back to the database.
This all works fine. However, this updating takes longer than I expected.
I've noted online that
"Note that an adapter will update the database row by row (i.e. one UPDATE
command will be sent for each modified row), this might be slow if there are
many rows to be updated."
Is there any way to avoid this?
In addition, I've just the CommandBuilder to configure the DataAdaptors.
Will this cause a significant delay? If so, how can I get round it?
Any help will be most appreciated.
Thanks in advance
G
LinasB - 26 May 2006 14:17 GMT
> In addition, I've just the CommandBuilder to configure the DataAdaptors.
> Will this cause a significant delay? If so, how can I get round it?
Yes you are right. CommandBuilder is very bad solution for that.
You must configure DataAdapter manually.
Give UPDATE, INSERT, DELETE commands and parameters manually.
G .Net - 26 May 2006 16:10 GMT
Hi
Am I right in thinking that the delay is generated because the command
builder is called every time an update is made?
G
>> In addition, I've just the CommandBuilder to configure the DataAdaptors.
>> Will this cause a significant delay? If so, how can I get round it?
>
> Yes you are right. CommandBuilder is very bad solution for that.
> You must configure DataAdapter manually.
> Give UPDATE, INSERT, DELETE commands and parameters manually.
LinasB - 26 May 2006 17:00 GMT
> Am I right in thinking that the delay is generated because the command
> builder is called every time an update is made?
I don't know, but without builder, update/insert is much faster.
G .Net - 29 May 2006 10:42 GMT
Hi Linas
Is this because the command builder adds "unnecessary" code i.e. it isn't
particularly efficient?
G
>> Am I right in thinking that the delay is generated because the command
>> builder is called every time an update is made?
>
> I don't know, but without builder, update/insert is much faster.
LinasB - 31 May 2006 15:50 GMT
> Is this because the command builder adds "unnecessary" code i.e. it isn't
> particularly efficient?
I think, that you can see what builder done for your update.