Commit Graph

8 Commits

Author SHA1 Message Date
Julien Calixte
b003a3e008 perf: move PouchDB/IndexedDB operations to a Web Worker
All database reads and writes now run off the main thread via a
dedicated worker, eliminating IndexedDB overhead from the frame budget.

- Create data.worker.ts exposing the Data class via Comlink
- Refactor data.ts to export a Comlink-wrapped proxy and a standalone
  generateId() pure function (workers can't expose sync methods cleanly)
- Update all 10 call sites to import generateId directly instead of
  calling data.generateId()

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-04 11:27:45 +02:00
Julien Calixte
5f48aa5690 chore: lint and fmt 2026-03-28 09:38:55 +01:00
Julien Calixte
84789393ad fix: distinct multiple layer of cache 2024-10-27 12:33:26 +01:00
Julien Calixte
ffa7c42021 fix: more resilient saved to avoid conflict. (no need to add the README main file when saveCacheNote) 2024-10-27 12:07:32 +01:00
Julien Calixte
8802ffb5b2 add a more resilient cache system with a global cache for each note from path 2024-07-16 21:55:54 +02:00
Julien Calixte
c7ea52c7f8 add path to new inbox file in pinia store
Not ideal to have data in multiple store (pinia and PouchDB) but it work this way. May need a refactoring.
2023-11-26 10:35:38 +01:00
Julien Calixte
2f6e8e7ca8 save editedSha in cached note to remember even after navigations 2023-09-06 22:49:44 +02:00
Julien Calixte
133a998ef8 rename previous hook 2023-08-13 21:10:21 +02:00