diff options
| author | Fuwn <[email protected]> | 2026-01-20 16:44:43 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-01-20 16:44:43 -0800 |
| commit | b56941ebd96a231d22a1316daa6b7e112478730e (patch) | |
| tree | d7653d558ffaa27eb8e2022c95ac855ce6cc10df /internal/storage/sqlite.go | |
| parent | fix: Update history bars (ping ticks) in API refresh mode (diff) | |
| download | kaze-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