Skip navigation links

MySQL Forums :: Transactions :: CR: add support of interactive transactions for webclients


Advanced Search

Re: CR: add support of interactive transactions for webclients
Posted by: Herbert Huber ()
Date: February 18, 2011 11:27AM

The proposal would solve the following problem:

Each web-session should match to one MySQL Process/Thread/Connection.
The MySQL Process should be active until web-session is closed.
This behaviour is not supported by MySQL up to now.
Therefore at the moment the following scenario occurs:
-----------------------------------
first access from webclient to webserver and MySQL:
start transaction
select row for update
display data of row on webclient for interactive (manual) modification

:( webserver disconnects from MySQL -> MySQL Process terminates -> Transaction is rolled back :(

second access from webclient to webserver and MySQL:
update row
commit transaction
------------------------------------

With the CR it would be possible to change to the following scenario:
-----------------------------------
first access from webclient to webserver and MySQL:
start transaction
select row for update
display data of row on webclient for interactive (manual) modification

webserver disconnects from MySQL
-> MySQL Process does NOT terminate
-> Transaction is kept open

second access from webclient to webserver and MySQL:
connect to original MySQL Process (containing the open transaction)
update row
commit transaction
------------------------------------


Regards,
Herbert

Options: ReplyQuote


Subject Views Written By Posted
CR: add support of interactive transactions for webclients 2121 Herbert Huber 02/15/2011 12:51AM
Re: CR: add support of interactive transactions for webclients 610 Peter Brawley 02/17/2011 10:18PM
Re: CR: add support of interactive transactions for webclients 711 Herbert Huber 02/18/2011 11:27AM
Re: CR: add support of interactive transactions for webclients 611 Rick James 02/25/2011 11:26AM
Re: CR: add support of interactive transactions for webclients 993 Herbert Huber 02/26/2011 11:27PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.