SAVEPOINT


A SAVEPOINT is used to create a checkpoint within a transaction.

It allows partial rollback instead of rolling back everything.

SAVEPOINT gives more control over transactions.

SAVEPOINT divides a transaction into smaller sections.

Each section can be rolled back independently.

This is useful in complex operations.

SAVEPOINT is commonly used in long transactions.

It helps handle errors without losing all progress.

This improves reliability.

SAVEPOINT marks a specific position in a transaction.

ROLLBACK can return to that savepoint.

Only changes after the savepoint are undone.

SAVEPOINT improves transaction flexibility.

It is useful in large systems and batch processing.

Backend developers must understand SAVEPOINT usage.