From e32eded757acdf93fe501d6b37ad6d2a86f19395 Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Thu, 26 Nov 2026 08:11:02 +0000 Subject: [PATCH] docs(admin): note the eviction assumption of the month prefilter The prefilter is exact only if the store never evicts a single month key at random. The home cluster store runs with noeviction. --- admin.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin.go b/admin.go index 447ead0..593de0b 100644 --- a/admin.go +++ b/admin.go @@ -1814,6 +1814,8 @@ func monthRangeToDayBuckets(now time.Time, span, offset int) (daySpan, dayOffset // anyway. It returns ids unchanged where that does not hold: no configured // store (the in-process fallback's month key can expire before a day key) or // a month window (the caller's own read is already the month read). +// It also assumes the store never evicts single keys at random (noeviction, +// LRU or LFU are safe): a lost month key would hide that model's row. func (g *Gateway) activeModelIDs(ids, metrics []string, window string, now time.Time, span, offset int) ([]string, bool) { if g.limiter.store == nil || window == windowMonth || len(ids) == 0 || span < 1 { return ids, true