xluffy / til

You only feel happy when you know what you doing
19 stars 1 forks source link

Commit trong PostgreSQL là làm những gì? #248

Open xluffy opened 3 months ago

xluffy commented 3 months ago

In most cases, all a COMMIT has to do is

Note that because of the multi-versioning architecture of PostgreSQL, both COMMIT and ROLLBACK are normally very fast operations: they both don't have to touch the tables, they only register the status of the transaction in the commit log.

https://www.cybertec-postgresql.com/en/why-do-i-have-a-slow-commit-in-postgresql/