nntrivi2001
e07993c536
perf: hourly update check only with a browser open; opt-in retention, incremental auto-vacuum and Compact
...
- update-scheduler: default interval 1 h (DASHBOARD_UPDATE_CHECK_INTERVAL_MS and its 60 s floor kept);
a scheduled tick with no /ws client is skipped, and the next browser to connect gets one catch-up
check when the last one is stale (websocket.js onConnection). Manual check unchanged.
- db-retention.js: shared session purge (used by POST /api/settings/cleanup too), opt-in
AGENTHUB_RETENTION_DAYS applied by the hourly maintenance in 25-session transactions with yields
(max 5000/run), bounded incremental_vacuum when the freelist is large, and a manual Compact
(VACUUM in a worker, converting to auto_vacuum=INCREMENTAL).
- db.js: new databases are INCREMENTAL; an existing one up to 32 MB is converted at startup.
- GET/PUT /api/settings/retention, POST /api/settings/compact (confirm: true); Settings → Data →
Session cleanup gets the Automatic cleanup control and Compact now (en + vi).
2026-10-16 10:20:38 +07:00
..
2026-10-09 14:57:10 +07:00
2026-09-11 15:20:30 +07:00
2026-07-30 14:39:03 +07:00
2026-10-13 17:10:29 +07:00
2026-10-06 22:48:09 +07:00
2026-10-01 13:39:17 +07:00
2026-09-29 08:25:37 +07:00
2026-10-01 10:11:43 +07:00
2026-10-01 13:39:17 +07:00
2026-10-08 12:22:14 +07:00
2026-09-29 08:25:37 +07:00
2026-10-06 22:48:09 +07:00
2026-10-06 17:12:28 +07:00
2026-09-23 09:18:17 +07:00
2026-10-06 17:12:28 +07:00
2026-09-29 16:09:19 +07:00
2026-09-29 16:09:19 +07:00
2026-10-05 17:01:05 +07:00
2026-10-14 16:06:54 +07:00
2026-10-15 17:17:47 +07:00
2026-10-06 18:53:10 +07:00
2026-07-30 14:39:03 +07:00
2026-10-06 17:12:28 +07:00
2026-09-09 09:36:52 +07:00
2026-09-07 12:09:15 +07:00
2026-09-09 09:36:52 +07:00
2026-09-09 08:30:45 +07:00
2026-10-06 22:48:09 +07:00
2026-09-23 16:46:20 +07:00
2026-10-07 11:18:10 +07:00
2026-09-25 11:30:02 +07:00
2026-09-10 16:05:07 +07:00
2026-10-07 14:11:25 +07:00
2026-09-07 08:32:19 +07:00
2026-09-07 12:09:15 +07:00
2026-09-08 09:48:40 +07:00
2026-09-29 16:09:19 +07:00
2026-10-14 17:21:33 +07:00
2026-10-14 17:21:33 +07:00
2026-10-07 13:24:15 +07:00
2026-09-09 01:29:17 +07:00
2026-09-09 01:17:06 +07:00
2026-09-08 16:57:02 +07:00
2026-09-08 16:24:17 +07:00
2026-09-29 16:09:19 +07:00
2026-09-29 16:09:19 +07:00
2026-09-29 16:09:19 +07:00
2026-09-09 01:17:06 +07:00
2026-10-09 14:57:10 +07:00
2026-10-05 17:01:05 +07:00
2026-10-06 17:12:28 +07:00
2026-10-08 12:22:14 +07:00
2026-10-05 17:01:05 +07:00
2026-09-08 16:17:48 +07:00
2026-10-06 17:12:28 +07:00
2026-10-09 14:57:10 +07:00
2026-10-14 11:55:53 +07:00
2026-10-06 22:48:09 +07:00
2026-10-14 16:06:54 +07:00
2026-10-05 17:01:05 +07:00
2026-10-08 23:04:57 +07:00
2026-10-01 13:39:17 +07:00
2026-10-16 10:20:38 +07:00
2026-09-21 17:03:27 +07:00
2026-10-09 14:57:10 +07:00
2026-09-25 11:23:59 +07:00
2026-10-05 17:01:05 +07:00
2026-10-14 14:17:39 +07:00
2026-07-30 14:39:03 +07:00
2026-09-07 12:09:15 +07:00
2026-10-15 16:42:47 +07:00
2026-09-25 10:44:40 +07:00
2026-09-25 10:44:40 +07:00
2026-10-06 22:48:09 +07:00
2026-10-12 15:40:51 +07:00
2026-09-25 10:44:40 +07:00
2026-10-08 12:22:14 +07:00
2026-10-07 15:34:17 +07:00
2026-10-14 12:21:55 +07:00
2026-10-15 16:02:11 +07:00
2026-09-29 16:09:19 +07:00
2026-10-15 16:33:32 +07:00
2026-07-30 14:39:03 +07:00
2026-09-07 12:09:15 +07:00
2026-09-07 12:09:15 +07:00
2026-10-14 11:55:53 +07:00
2026-09-28 17:49:05 +07:00
2026-09-07 12:09:15 +07:00
2026-09-07 12:09:15 +07:00
2026-09-07 12:09:15 +07:00
2026-09-07 12:09:15 +07:00
2026-10-14 12:21:55 +07:00
2026-09-07 12:09:15 +07:00
2026-10-13 14:43:03 +07:00
2026-09-25 17:30:28 +07:00
2026-09-07 12:09:15 +07:00
2026-09-07 12:09:15 +07:00
2026-10-12 13:06:04 +07:00
2026-09-17 16:16:31 +07:00
2026-09-07 12:09:15 +07:00
2026-10-12 14:04:08 +07:00
2026-10-06 11:31:26 +07:00
2026-09-25 11:30:10 +07:00
2026-09-29 08:18:40 +07:00
2026-09-25 17:30:28 +07:00
2026-09-07 12:09:15 +07:00
2026-10-06 17:12:28 +07:00
2026-10-06 17:12:28 +07:00
2026-10-14 17:21:33 +07:00
2026-10-12 13:06:04 +07:00
2026-10-15 14:44:47 +07:00
2026-10-14 11:55:53 +07:00
2026-10-06 17:12:28 +07:00
2026-09-07 12:09:15 +07:00
2026-10-12 15:40:51 +07:00
2026-10-08 12:22:14 +07:00
2026-09-28 17:49:05 +07:00
2026-10-16 10:05:03 +07:00
2026-09-08 15:44:41 +07:00
2026-09-11 16:45:47 +07:00
2026-10-15 11:46:09 +07:00
2026-10-06 16:22:53 +07:00
2026-09-28 17:49:05 +07:00
2026-10-08 12:22:14 +07:00
2026-07-30 14:39:03 +07:00
2026-10-08 12:22:14 +07:00
2026-10-06 17:12:28 +07:00
2026-09-09 01:45:00 +07:00
2026-10-01 16:33:25 +07:00
2026-09-07 12:09:15 +07:00
2026-09-07 12:09:15 +07:00
2026-10-06 22:48:09 +07:00
2026-10-15 11:46:09 +07:00
2026-10-12 15:56:16 +07:00
2026-10-06 17:12:28 +07:00
2026-07-30 14:39:03 +07:00
2026-10-06 17:12:28 +07:00
2026-10-08 23:04:57 +07:00
2026-10-08 12:22:14 +07:00
2026-10-07 13:24:15 +07:00
2026-10-06 17:12:28 +07:00
2026-09-24 17:05:15 +07:00
2026-10-06 17:12:28 +07:00
2026-10-02 16:18:00 +07:00
2026-10-15 11:51:30 +07:00
2026-10-14 14:17:39 +07:00
2026-10-12 14:15:22 +07:00
2026-10-13 14:43:03 +07:00
2026-10-08 23:04:57 +07:00
2026-07-30 14:39:03 +07:00
2026-10-12 14:04:08 +07:00
2026-09-08 09:48:40 +07:00
2026-10-13 17:10:29 +07:00
2026-10-08 23:04:57 +07:00
2026-10-09 16:35:07 +07:00
2026-10-12 15:56:26 +07:00
2026-10-09 14:57:10 +07:00
2026-10-14 14:17:39 +07:00
2026-10-08 23:04:57 +07:00
2026-10-08 23:04:57 +07:00
2026-10-13 14:43:03 +07:00
2026-10-14 16:06:54 +07:00
2026-10-13 17:10:29 +07:00
2026-10-08 23:04:57 +07:00
2026-10-08 23:04:57 +07:00
2026-10-13 14:43:03 +07:00
2026-10-14 12:21:55 +07:00
2026-10-14 14:17:39 +07:00
2026-10-09 14:57:10 +07:00
2026-10-12 15:56:16 +07:00
2026-10-13 17:10:29 +07:00
2026-10-15 14:44:47 +07:00
2026-10-09 14:57:10 +07:00
2026-10-09 14:57:10 +07:00
2026-10-09 14:57:10 +07:00
2026-10-14 12:21:55 +07:00
2026-10-09 15:17:55 +07:00
2026-10-14 14:17:39 +07:00
2026-10-15 14:44:47 +07:00
2026-10-09 14:57:10 +07:00
2026-10-07 13:24:15 +07:00
2026-10-09 16:35:07 +07:00
2026-09-07 12:09:15 +07:00
2026-09-07 12:09:15 +07:00
2026-10-02 13:22:29 +07:00
2026-07-30 14:39:03 +07:00
2026-10-05 13:22:08 +07:00
2026-10-02 14:19:02 +07:00
2026-09-29 16:09:19 +07:00
2026-10-05 17:01:05 +07:00
2026-10-07 11:18:10 +07:00
2026-10-06 17:12:28 +07:00
2026-09-18 10:21:03 +07:00
2026-10-06 17:12:28 +07:00
2026-07-30 14:39:03 +07:00
2026-10-07 13:24:15 +07:00
2026-07-30 14:39:03 +07:00
2026-10-08 12:22:14 +07:00
2026-10-15 14:23:16 +07:00
2026-10-08 12:22:14 +07:00
2026-07-30 14:39:03 +07:00
2026-10-10 15:10:13 +07:00
2026-07-30 14:39:03 +07:00
2026-10-13 10:46:56 +07:00
2026-10-08 12:22:14 +07:00
2026-09-18 16:52:05 +07:00
2026-10-05 13:22:04 +07:00
2026-10-08 23:04:57 +07:00
2026-10-01 10:09:12 +07:00
2026-10-09 17:24:14 +07:00
2026-10-10 12:01:01 +07:00
2026-10-16 10:20:38 +07:00
2026-10-06 16:22:53 +07:00
2026-10-14 17:21:33 +07:00
2026-10-08 23:04:57 +07:00
2026-10-05 09:37:48 +07:00
2026-09-21 17:03:27 +07:00
2026-09-07 12:09:15 +07:00
2026-10-06 20:22:34 +07:00
2026-07-30 14:39:03 +07:00
2026-07-30 14:39:03 +07:00
2026-10-05 17:01:05 +07:00
2026-10-09 15:17:55 +07:00
2026-09-09 15:32:09 +07:00
2026-09-17 15:07:37 +07:00