google-labs-jules[bot] and PR0M3TH3AN
75b6bbd1e6
perf: implement IndexedDB connection pooling in dmDb.js
...
Refactor `js/storage/dmDb.js` to use a singleton connection pattern for IndexedDB.
Previously, the database was opened and closed for every single operation,
leading to significant overhead.
Changes:
- Introduced `dbInstance` and `dbPromise` to cache the database connection.
- Refactored `openDmDb` to reuse the existing connection or pending promise.
- Added `onversionchange` handler to safely close the connection if an upgrade is requested.
- Removed all manual `db.close()` calls from exported functions.
- Added a benchmark script in `tests/benchmark-dm-db.mjs` to verify the improvement.
Co-authored-by: PR0M3TH3AN <[email protected] >
2026-02-08 03:09:14 +00:00
..
2026-01-19 12:51:34 -05:00
2026-01-28 14:35:56 +00:00
2026-01-24 20:28:53 +00:00
2025-10-15 14:37:25 -04:00
2026-02-05 19:17:16 +00:00
2026-02-07 13:39:08 +00:00
2026-01-31 19:10:00 +00:00
2026-01-24 20:28:53 +00:00
2026-02-07 13:13:08 +00:00
2026-02-05 19:18:36 +00:00
2026-02-08 03:09:14 +00:00
2026-01-31 19:16:04 +00:00
2026-01-26 22:07:32 -05:00
2026-01-23 04:39:18 +00:00
2026-01-27 18:02:01 +00:00
2026-02-07 09:25:16 -05:00
2025-10-03 21:10:22 -04:00
2026-01-24 20:00:00 -05:00
2026-01-07 17:30:22 +00:00
2026-02-07 13:38:21 +00:00
2026-01-28 23:49:33 +00:00
2026-01-26 15:55:11 +00:00
2026-01-24 20:28:53 +00:00
2026-01-27 02:42:31 +00:00
2026-01-22 14:58:35 +00:00
2026-01-24 20:28:53 +00:00
2026-02-05 21:21:40 +00:00
2026-01-24 23:57:29 +00:00
2026-01-24 22:29:18 +00:00
2026-01-22 19:27:40 -05:00
2026-01-21 17:48:01 +00:00
2026-01-24 20:28:53 +00:00
2026-01-27 16:32:01 +00:00
2026-01-23 04:19:40 +00:00
2026-01-27 20:33:25 +00:00
2026-01-24 20:00:00 -05:00
2026-01-23 02:09:08 -05:00
2026-01-24 20:28:53 +00:00
2026-01-26 21:49:18 -05:00
2026-01-27 20:33:25 +00:00
2026-01-26 21:49:18 -05:00
2026-01-28 23:49:33 +00:00
2026-01-28 23:49:33 +00:00
2026-01-28 16:27:36 +00:00
2025-10-15 14:37:25 -04:00
2026-01-27 03:15:32 +00:00
2025-10-22 22:17:30 -04:00
2025-10-22 22:17:30 -04:00
2025-10-15 14:37:25 -04:00
2025-09-24 15:23:24 -04:00
2026-01-26 12:47:05 -05:00
2026-01-19 20:46:47 +00:00
2026-01-24 20:28:53 +00:00
2026-01-23 20:33:06 +00:00
2026-01-19 02:13:59 +00:00
2025-10-01 13:42:50 -04:00
2026-01-28 23:49:33 +00:00
2026-01-24 20:28:53 +00:00
2026-01-27 20:33:25 +00:00
2026-01-19 20:46:47 +00:00
2026-01-28 23:49:33 +00:00
2026-01-19 20:46:47 +00:00
2026-01-09 19:34:39 -05:00
2026-01-27 08:36:12 -05:00
2025-10-15 14:37:25 -04:00
2026-01-21 22:07:23 +00:00
2025-10-15 12:49:46 -04:00
2026-01-26 23:40:59 +00:00
2025-02-05 16:54:40 -05:00
2025-02-05 16:54:40 -05:00