Skip to content

Track write transactions which do not call write operations - #16

Merged
nikitakarpei merged 1 commit into
mainfrom
vault-empty-write-transactions
Aug 16, 2026
Merged

Track write transactions which do not call write operations#16
nikitakarpei merged 1 commit into
mainfrom
vault-empty-write-transactions

Conversation

@nikitakarpei

@nikitakarpei nikitakarpei commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Nice to have to see that we do not use write transactions for read operations

A write transaction that opens, calls no store or delete, and commits
still takes the single writer lock of the storage engine. The vault
reported no difference between it and a transaction that writes, so the
waste stayed invisible.

The transaction now carries whether a collection called store or delete
through it, and reports that with the commit. The metric
vault_write_transactions_total gains a called_write_operation label, and
the Vault row of the yacynode dashboard shows the share of commits that
wrote nothing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@nikitakarpei
nikitakarpei merged commit fa3cecd into main Aug 16, 2026
12 checks passed
@nikitakarpei
nikitakarpei deleted the vault-empty-write-transactions branch August 16, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant