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:
5
.changeset/dashboard-load-performance.md
Normal file
5
.changeset/dashboard-load-performance.md
Normal 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.
|
||||
Reference in New Issue
Block a user