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.
This commit is contained in:
2026-11-26 08:11:02 +00:00
parent 2896100e9a
commit e32eded757
+2
View File
@@ -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