safekeeper: return AppendResponse
on txn commit
#9690
Labels
a/performance
Area: relates to performance of the system
c/storage/safekeeper
Component: storage: safekeeper
Currently, when ingesting pipelined
AppendRequest
, we only flush the WAL and return anAppendResponse
every second. This is despite the WAL implicitly getting flushed on segment bounds (see #9688).However, consider a concurrent writer who inserts a single row. This writer must wait up to 1 second before an
AppendResponse
with a newflush_lsn
allows the transaction to commit.We should consider eagerly flushing and returning an
AppendResponse
when the WAL contains a transaction commit. This provides the same behavior as vanilla Postgres, where a txn commit forces an immediate WAL flush.The text was updated successfully, but these errors were encountered: