aboutsummaryrefslogtreecommitdiff
path: root/internal/storage/sqlite.go
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-01-20 16:44:43 -0800
committerFuwn <[email protected]>2026-01-20 16:44:43 -0800
commitb56941ebd96a231d22a1316daa6b7e112478730e (patch)
treed7653d558ffaa27eb8e2022c95ac855ce6cc10df /internal/storage/sqlite.go
parentfix: Update history bars (ping ticks) in API refresh mode (diff)
downloadkaze-b56941ebd96a231d22a1316daa6b7e112478730e.tar.xz
kaze-b56941ebd96a231d22a1316daa6b7e112478730e.zip
perf: Optimize API refresh to single /api/page request
Replace N+1 API calls (1 status + N history) with a single /api/page endpoint that returns all monitor data including history ticks. For 20 monitors: 21 requests -> 1 request per refresh interval. The /api/page endpoint is automatically public when refresh_mode=api, regardless of api.access setting, to ensure the page can always refresh.
Diffstat (limited to 'internal/storage/sqlite.go')
0 files changed, 0 insertions, 0 deletions