Skip to content

perf(db): index unreconciled due actions (#442) - #1237

Open
harshitethic wants to merge 3 commits into
useconcord:mainfrom
harshitethic:fix/442-index-due-actions
Open

harshitethic wants to merge 3 commits into
useconcord:mainfrom
harshitethic:fix/442-index-due-actions

Conversation

@harshitethic

Copy link
Copy Markdown
Contributor

Fixes #442. Add a new additive workspace database migration with the partial index actions_due on record_time WHERE snapshot IS NULL so repeated reconcileDue checks avoid scanning reconciled actions. A regression test starts from migration v1, upgrades to the latest schema, checks user_version, and verifies EXPLAIN QUERY PLAN uses actions_due. Focused Vitest, API TypeScript typecheck and ESLint pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an index so reconcileDue's join over actions with snapshot IS NULL stops scanning the table

1 participant