mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
optimize change model - much faster for large decks
This commit is contained in:
parent
2a9e88cb5d
commit
6ccafcb996
1 changed files with 5 additions and 2 deletions
|
@ -1316,9 +1316,12 @@ where id in %s""" % ids2str(ids), new=new.id, ord=new.ordinal)
|
||||||
self.updateCardQACacheFromIds(factIds, type="facts")
|
self.updateCardQACacheFromIds(factIds, type="facts")
|
||||||
self.flushMod()
|
self.flushMod()
|
||||||
self.updateProgress()
|
self.updateProgress()
|
||||||
self.updateCardTags()
|
cardIds = self.s.column0(
|
||||||
|
"select id from cards where factId in %s" %
|
||||||
|
ids2str(factIds))
|
||||||
|
self.updateCardTags(cardIds)
|
||||||
self.updateProgress()
|
self.updateProgress()
|
||||||
self.updateAllPriorities()
|
self.updatePriorities(cardIds)
|
||||||
self.updateProgress()
|
self.updateProgress()
|
||||||
self.rebuildCounts()
|
self.rebuildCounts()
|
||||||
self.refresh()
|
self.refresh()
|
||||||
|
|
Loading…
Reference in a new issue