Subject | RE: [firebird-support] same Update takes first 0 sec then 10 sec? |
---|---|
Author | Tobias Giesen |
Post date | 2003-07-28T19:45:52Z |
> But this:Hi,
> UPDATE CHANGEINFO SET COUNTER=37830.5083804861 WHERE (ID = 2);
> UPDATE CHANGEINFO SET COUNTER=37830.5083804861 WHERE (ID = 2);
> COMMIT;
seems to me that updating the same rows twice within one transaction
requires a lot of internal processing, because the second updates must
relate to the first ones with many intermediate transaction-specific data to
be handled. I wouldn't normally update the same records twice within one
transaction. Maybe Firebird is not optimized for this (rare!) case.
Cheers,
Tobias