This is a hotfix release focused on eliminating abnormal battery drain, frequent wake-ups, and stutters caused by synchronous DB work on the main thread.
Improvements
Unified DB access to run asynchronously on the serial dbQueue and await results, significantly reducing main-thread load and energy impact.
Async closures now explicitly capture self for clearer concurrency semantics and easier maintenance.
Fixes
Fixed: The main thread synchronously waiting on the DB queue caused sustained CPU activity and frequent wake-ups (abnormal battery drain).
Fixed: Search, FTS, stats, and export paths triggering synchronous SQL on the UI thread amplified energy use and UI stutters.
Fixed: Search, FTS, vector queries, and migration paths now use async DB calls to prevent main-thread SQL scans and blocking waits.
Fixed: Stats and export now read the DB asynchronously, so the UI thread no longer executes SQL directly.
Technical Changelog
Reworked synchronous DB reads/writes that could occur on the main thread to run asynchronously on dbQueue and await results.
Moved high-frequency paths (search/FTS/stats/export/migrations) to async DB calls to avoid UI thread stalls.
Compatibility & Behavior Notes
This is a performance/energy hotfix and does not introduce new user interaction flows.
All processing remains local with no data uploaded or stored remotely.
Upgrade Notes
Strongly recommended for all v1.1.0 users, especially if you experienced battery drain, frequent wake-ups, or UI stutters.
Notes
Wishing everyone good health, a smooth career, and family harmony in the new year.