Commit Graph
6 Commits
Author SHA1 Message Date
daprogs d382c77995 docs: add SQL-only schema update script for v2610.1
update(2610.1).sql brings an existing database up to the current schema
without PHP: base tables (CREATE IF NOT EXISTS), the v2603.x migrations
(last_event_at column, uq_event removal) and the v2610.1 index changes
(idx_occurred, idx_src_ip_occ, drop idx_src_ip). All steps are idempotent
via information_schema checks + PREPARE/EXECUTE, so the file is safe to
re-run and portable across MySQL 8 and MariaDB.
2026-10-19 12:12:00 -04:00
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 3634f502a1 Adding connections api 2026-03-11 10:57:40 -04:00
DAProgs e0fe0c4d34 Adding passwords and versionning 2026-03-11 10:43:23 -04:00
DAProgs 20ed0eeadb First push 2026-03-11 10:14:26 -04:00
DAProgs eaf4dbbc3b Initial commit 2026-03-11 10:12:23 -04:00