Skip to content

Refactor statement store index locking: stage 1#11480

Open
s0me0ne-unkn0wn wants to merge 3 commits intomasterfrom
s0me0ne/sss-optimize-index-stage1
Open

Refactor statement store index locking: stage 1#11480
s0me0ne-unkn0wn wants to merge 3 commits intomasterfrom
s0me0ne/sss-optimize-index-stage1

Conversation

@s0me0ne-unkn0wn
Copy link
Contributor

Implements stage 1 changes from #10910.

The single Index struct with one RwLock was split into two independent structures with separate locks:

ReadIndex (topic/key-based filtering):

  • by_topic - topic to statement hash mapping
  • by_dec_key - decryption key to statement hash mapping
  • topics_and_keys - reverse mapping for cleanup

WriteIndex (constraint checking, entries, accounts):

  • entries, expired, accounts, accounts_to_check_for_expiry_stmts, recent, options, total_size

@s0me0ne-unkn0wn
Copy link
Contributor Author

/cmd prdoc --audience node_dev --bump patch

@s0me0ne-unkn0wn s0me0ne-unkn0wn added the T0-node This PR/Issue is related to the topic “node”. label Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T0-node This PR/Issue is related to the topic “node”.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant