Try OpenEdge Now
skip to main content
Developing WebSpeed Applications
Controlling WebSpeed Transactions : Defining state : Advantages and drawbacks of state-persistence

Advantages and drawbacks of state-persistence

State persistent applications are advantageous because they:
*Allow a single database transaction to span multiple page requests and to be completely rolled back (undone) in case of error
*Minimize the amount of data that needs to be passed from one request to another
*Minimize database access (re-opening tables) for each request
However, there may also be considerable overhead associated with state persistent applications because they:
*Lock a WebSpeed agent until a transaction terminates
*May tie up one or more database records until the transaction terminates