Skip to content

db/state: replace ExistenceFilterOnAppMemory with ExistenceFilterMode enum#21788

Open
AskAlexSharov wants to merge 1 commit into
mainfrom
cp/21776-to-main
Open

db/state: replace ExistenceFilterOnAppMemory with ExistenceFilterMode enum#21788
AskAlexSharov wants to merge 1 commit into
mainfrom
cp/21776-to-main

Conversation

@AskAlexSharov

Copy link
Copy Markdown
Collaborator

Cherry-pick of #21776 to main.

… enum

Introduce ExistenceFilterMode (InMem=0, WillNeed=1, Normal=2, Random=3) on
DomainCfg instead of a bool. Zero value (InMem) is the common case, so no
schema lines are needed for the default.

All four debug env vars are now per-domain name lists:
  DOMAIN_EXISTENCE_MEM=accounts,storage      — override to InMem
  DOMAIN_EXISTENCE_WILLNEED=accounts         — override to WillNeed
  DOMAIN_EXISTENCE_NORMAL=accounts           — override to Normal
  DOMAIN_EXISTENCE_RANDOM=accounts           — override to Random

MadvRandom plumbed through fusefilter.Reader, fusefilter.ReaderSharded,
existence.Filter, and recsplit.Index.
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