4 Commits
Author SHA1 Message Date
daprogs 849360e61c perf: add occurred_at indexes to connections
Time-window queries (dashboard stats, recent connections, JSON API,
purge) had no usable index and full-scanned the connections table on
every load, so the dashboard slowed down as data accumulated.

- Add idx_occurred (occurred_at) for counts, MAX, ORDER BY ... LIMIT,
  and the purge delete
- Add idx_src_ip_occ (src_ip, occurred_at) so frequent_ips() runs as a
  covering index scan
- Drop the now-redundant standalone idx_src_ip

Migrations in setup.php are idempotent (information_schema checks) and
portable across MySQL 8 and MariaDB.
2026-10-18 21:56:33 -04:00
DAProgs 29f20eb15c 2603.9 frequesnt IPs added 2026-03-13 16:13:56 -04:00
DAProgs 1e57388299 2603.8 purging old records 2026-03-13 16:01:19 -04:00
DAProgs 20ed0eeadb First push 2026-03-11 10:14:26 -04:00