(no title)
anonymars | 11 months ago
> Fully durable transaction commits are synchronous and report a commit as successful and return control to the client only after the log records for the transaction are written to disk. Delayed durable transaction commits are asynchronous and report a commit as successful before the log records for the transaction are written to disk. Writing the transaction log entries to disk is required for a transaction to be durable. Delayed durable transactions become durable when the transaction log entries are flushed to disk.
https://learn.microsoft.com/en-us/sql/relational-databases/l...
TwoPhonesOneKid|11 months ago
anonymars|11 months ago
unknown|11 months ago
[deleted]
toast0|11 months ago
Up to you how many transactions you want in a batch.
koolba|11 months ago
You can have the first transaction wait a bit to see if any other commits can be batched in the same fsync. However that’s off by default as the assumption is you want the transaction to complete as fast as possible.
At least that’s how PostgreSQL implements it.
marsovo|11 months ago