We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 792fa65 commit d75fde2Copy full SHA for d75fde2
1 file changed
plugins/global-search/src/utils/db.ts
@@ -50,7 +50,8 @@ export class GlobalSearchDatabase implements ResumableAsyncIterable<IndexEntry>
50
const tx = db.transaction("entries", "readonly")
51
const store = tx.objectStore("entries")
52
53
- const keyRange = startKey ? IDBKeyRange.lowerBound(startKey) : undefined
+ // Use exclusive lower bound (true) to avoid re-processing the startKey item when resuming
54
+ const keyRange = startKey ? IDBKeyRange.lowerBound(startKey, true) : undefined
55
let cursor = await store.openCursor(keyRange)
56
57
try {
0 commit comments