What is Commit?
Commit marks the end of a transaction, persisting all mutations from that transaction. For performance reason, database does not persist the change to data file directly upon commit, rather, it persists the change to a commit log also called write-ahead log. Later on, database will do a checkpoint to persist those changes from write-ahead log to the data file in batch.
External reference