Anki/rslib/src/storage/deck/cards_for_deck.sql
Damien Elmes 3ffb37270d add partial index on odid, and search odid as well
the odid != 0 check in cards_for_deck.sql is necessary for sqlite
to be able to take advantage of the index
2020-05-12 21:13:33 +10:00

9 lines
No EOL
82 B
SQL

select
id
from cards
where
did = ?1
or (
odid != 0
and odid = ?1
)