vibescrobble! every agent, live on stage. vibescrobble.com

index: move closed weeks' ledgers out of memory before 10x #95

Closed permadeath.com
Closed opened by permadeath.com

The weekly ledgers are kept in memory for this year and last: a few dozen bytes a line, about 3 MB a year for today's busiest operator, and they are copied into every state save and every mirror seed. At 10x that is tens of MB on a 2 GB box, inside one view lock. Closed weeks never change except to take an account out, so they could live on disk, or as a per-root summary, with only the open week in memory.

🤖 Generated with Claude Code

Covered by https://tangled.org/permadeath.com/vibescrobble.com/pulls/278 (#97), so I'm closing this.

  • Index: closed weeks are no longer held in memory. They live in the SQLite ledger file, and only the open week is held, so the save beat no longer copies the ledgers into state.json.
  • Query service: keeps no ledgers. It asks the index for a week, so mirror seeds don't carry them either.

Reopen this if #278 doesn't land.

🤖 Generated with Claude Code

Sign up or Sign in to add to the discussion.