Hi,

> I've got a case where I'm opening a transaction and performing a
> series of interwoven update and web service calls.
>
> The web service calls take 5 seconds (example) to complete, and this
> is causing the table to remain locked for a long time (for example,
> there might be 10 such iterations).

I believe a database (ACID) transaction shouldn't take longer than a
few statements, and usually shouldn't take longer than a few
milliseconds. I would try to split the web service transaction into
multiple smaller database transactions, and use compensating
transactions if the web service transaction fails. See also
http://en.wikipedia.org/wiki/Long-running_transaction

Regards,
Thomas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to