ankitects / ankitects/anki

Unnecessary call to the db in get_queued_cards

Closed Beginner friendly
#5,144 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
30.5k
Forks
3.2k
Avg merge
2d 8h
Merged PRs (30d)
60

Description

https://github.com/ankitects/anki/blob/cfe007770a862dfd806488903a712007f3b3bf04/rslib/src/scheduler/queue/mod.rs#L121

Contributor guide

Open the contributing guide

Research direction

Read rslib/src/scheduler/queue/mod.rs around line 121 and trace get_queued_cards to identify the database call described by the issue. Confirm whether removing or avoiding that call preserves the function's behavior, then run the relevant existing checks; done means get_queued_cards no longer makes the unnecessary database call.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.