mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
reduce default cache size
Use a more conservative 40MB for systems with a smaller amount of memory. Ideally we should bump this up if we detect the running system has a decent amount of memory.
This commit is contained in:
parent
2e628996a3
commit
3e5041f337
2 changed files with 3 additions and 1 deletions
|
@ -27,7 +27,7 @@ def Deck(path, queue=True, lock=True):
|
|||
ver = _createDB(db)
|
||||
else:
|
||||
ver = _upgradeSchema(db)
|
||||
db.execute("pragma cache_size = 20000")
|
||||
db.execute("pragma cache_size = 10000")
|
||||
# add db to deck and do any remaining upgrades
|
||||
deck = _Deck(db)
|
||||
if ver < CURRENT_VERSION:
|
||||
|
|
|
@ -197,6 +197,8 @@ class Syncer(object):
|
|||
|
||||
# Facts
|
||||
##########################################################################
|
||||
# we don't actually need to send sflds across as it's recalculated on
|
||||
# merge; may want to change this before final release
|
||||
|
||||
def getFacts(self):
|
||||
f = self.deck.db.all("select * from facts where usn >= ? limit ?",
|
||||
|
|
Loading…
Reference in a new issue