perf: serve long-range studies from a decoded closed-day cache
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4143bf599e
commit
4ca9c7bf0c
16 files changed
+846
-83
No files matched your search
@@ -225,7 +225,7 @@ func anQuant(v []int64, q float64) int64 {
|
||||
func (s *Store) anScan(from, to int64, host string, fn func(evlog.Rec) bool) (truncated bool) {
|
||||
deadline := time.Now().Add(studyDead)
|
||||
n := 0
|
||||
info := s.elog.Scan(evlog.Filter{From: from, To: to, Host: host}, studyBudget, false, func(r evlog.Rec, _ []byte) bool {
|
||||
info := s.elog.ScanRecs(evlog.Filter{From: from, To: to, Host: host}, studyBudget, false, func(r evlog.Rec) bool {
|
||||
if n++; n%4096 == 0 && time.Now().After(deadline) {
|
||||
truncated = true
|
||||
return false
|
||||
|
||||
Reference in new issue
Block a user