Skip to content

Optimize batched Anki duplicate searches - #2479

Open
L-M-Sherlock wants to merge 1 commit into
yomidevs:masterfrom
L-M-Sherlock:perf/anki-find-note-ids-batching
Open

Optimize batched Anki duplicate searches#2479
L-M-Sherlock wants to merge 1 commit into
yomidevs:masterfrom
L-M-Sherlock:perf/anki-find-note-ids-batching

Conversation

@L-M-Sherlock

@L-M-Sherlock L-M-Sherlock commented Aug 14, 2026

Copy link
Copy Markdown

My problem: it's very slow to show the add button when I have a lot of dictionaries and the word has many entries:

image

Previously, each candidate triggered a separate full-collection findNotes search.

The new approach finds all candidates in one combined query, then performs exact matching within that smaller candidate set.

@L-M-Sherlock
L-M-Sherlock requested a review from a team as a code owner August 14, 2026 04:17
@Kuuuube Kuuuube added kind/enhancement The issue or PR is a new feature or request area/performance The issue or PR is related to performance area/anki The issue or PR is related to Anki integration labels Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/anki The issue or PR is related to Anki integration area/performance The issue or PR is related to performance kind/enhancement The issue or PR is a new feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants