mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
speed up deleteDanglingFacts()
This commit is contained in:
parent
bc7bdc24c4
commit
d15dd71b68
1 changed files with 1 additions and 1 deletions
|
@ -1072,7 +1072,7 @@ where factId = :fid and cardModelId = :cmid""",
|
|||
"Delete any facts without cards. Return deleted ids."
|
||||
ids = self.s.column0("""
|
||||
select facts.id from facts
|
||||
where facts.id not in (select factId from cards)""")
|
||||
where facts.id not in (select distinct factId from cards)""")
|
||||
self.deleteFacts(ids)
|
||||
return ids
|
||||
|
||||
|
|
Loading…
Reference in a new issue