Step-by-Step Internal Flow
BEGIN → The database assigns a transaction ID (TID) and starts tracking all operations.
Read/Write Operations → Data pages are fetched from disk into the Buffer Pool.
Locking / MVCC →
Lock-based systems: lock rows/tables to ensure isolation.
MVCC systems: keep multiple versions of data so reads don’t block writes.
Undo Logging → Before any change, the old value is written to an Undo Log.
Change in Memory → Updates are made to in-memory pages in the buffer pool.
Redo Logging (WAL) → The intended changes are written to a Write-Ahead Log on disk.
Commit → The WAL is flushed to disk, guaranteeing durability.
Post-Commit → Locks are released, and dirty pages are eventually written to disk.
Rollback (if needed) → Use the Undo Log to restore old values.
Read More: https://jating4you.blogspot.com/2025/08/understanding-internal-working-of.html