Unnecessary call to the db in get_queued_cards
Closed
Beginner friendly
- 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
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