feat(FN-1532): add performance indexes for dashboard boot queries

- Add composite indexes for dashboard boot query paths
- Optimize taskList queries with (column, updatedAt) and (column, status, updatedAt) indexes
- Optimize activityLog queries with (timestamp DESC, taskId) index
- Add idempotent CREATE INDEX IF NOT EXISTS pattern for migrations
- Document index patterns in memory.md for future schema changes
- Update schema version assertions in db.test.ts and task-documents.test.ts
- Add changeset for dashboard load performance improvement
This commit is contained in:
gsxdsm
2026-04-10 07:26:13 -07:00
parent 29a2984a04
commit 91d4c113e1
8 changed files with 215 additions and 15 deletions

View File

@@ -0,0 +1,5 @@
---
"@gsxdsm/fusion": patch
---
Improve dashboard load performance by adding SQLite indexes for boot-critical queries. The indexes eliminate full table scans and temporary B-tree sorts for task listing, AI session listing, activity log queries, and agent filtering. Users with large task histories should see noticeably faster dashboard startup times.