perf: Add index to sync status #2337
Reference in New Issue
Block a user
Delete Branch "add-index-to-sync-status"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Some sync DB queries can take a couple of seconds. This PR adds an index on the status column to speed up the lookup for
syncing?check on PlaidItem.Query Plans
Before
After
Bitmap Heap Scanis not ideal, but should be better than a sequential scan.Good idea. Will merge when tests pass!