Experimental change: disable gamedata caching completely and stop all

prefetching except for fetching the skill list
This commit is contained in:
cncfanatics
2010-10-27 19:13:05 +02:00
parent f0454a7e24
commit f92c517bb5
3 changed files with 6 additions and 7 deletions

View File

@@ -15,7 +15,10 @@ staticPath = homePath
saveddata = os.path.join(homePath, "saveddata.db")
gamedata = os.path.join(homePath, "eve.db")
# saveddata db location modifier, shouldn't ever need to touch this
import eos.config
#Caching modifiers, disable all gamedata caching, its unneeded.
eos.config.gamedataCache = None
# saveddata db location modifier, shouldn't ever need to touch this
eos.config.saveddata_connectionstring = "sqlite:///" + saveddata
eos.config.gamedata_connectionstring = "sqlite:///" + gamedata
eos.config.gamedata_connectionstring = "sqlite:///" + gamedata

2
eos

Submodule eos updated: 152693b1cc...fe2977950e

View File

@@ -26,10 +26,6 @@ class PrefetchThread(threading.Thread):
# Make sure we don't throw tracebacks to console
try:
eos.db.getItemsByCategory("Skill", eager=("effects", "attributes", "attributes.info.icon", "attributes.info.unit", "icon"))
cMarket = service.Market.getInstance()
root = cMarket.getShipRoot()
for id, _ in root:
cMarket.getShipList(id)
except:
pass