Efficient Single Savepoint for Large Transactions
The c-tree Server uses the ReplaceSavePoint() function internally to provide a fast, efficient means to carry along a save point in large transactions, so that an error can be undone by calling RestoreSavePoint() and then continuing the transaction. Compared to SetSavePoint(), which inserts a separate save point for each call, ReplaceSavePoint() simply updates internal linkages to effectively move the save point.
The ReplaceSavePoint() is now included in the c-tree client API. Your c-tree Plus client application can now undo the last change in a transaction with the ReplaceSavePoint() function as an efficient alternative. Consider this approach when you simply need to back up to the previous transaction state in the case of an error. Your applications gain a slight performance advantage by doing so!
|