mirror of
https://github.com/ankitects/anki.git
synced 2025-11-16 09:37:12 -05:00
the odid != 0 check in cards_for_deck.sql is necessary for sqlite to be able to take advantage of the index
9 lines
No EOL
82 B
SQL
9 lines
No EOL
82 B
SQL
select
|
|
id
|
|
from cards
|
|
where
|
|
did = ?1
|
|
or (
|
|
odid != 0
|
|
and odid = ?1
|
|
) |