From 04f293384c6afca4e97f3d84af0a478a7427eebf Mon Sep 17 00:00:00 2001 From: Worros Date: Sun, 29 Mar 2009 21:47:09 +0800 Subject: [PATCH] Really make fastStoreHudCache false by default --- pyfpdb/fpdb_save_to_db.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pyfpdb/fpdb_save_to_db.py b/pyfpdb/fpdb_save_to_db.py index d48f669b..f497428f 100644 --- a/pyfpdb/fpdb_save_to_db.py +++ b/pyfpdb/fpdb_save_to_db.py @@ -26,7 +26,7 @@ MYSQL_INNODB = 2 PGSQL = 3 SQLITE = 4 -fastStoreHudCache = True # set this to True to test the new storeHudCache routine +fastStoreHudCache = False # set this to True to test the new storeHudCache routine saveActions = True # set this to False to avoid storing action data # Pros: speeds up imports @@ -42,8 +42,8 @@ def ring_stud(config, backend, db, cursor, base, category, site_hand_no, gametyp import_options = config.get_import_parameters() - saveActions = True if import_options['saveActions'] == 'True' else False - fastStoreHudCache = True if import_options['fastStoreHudCache'] == 'True' else False + saveActions = False if import_options['saveActions'] == False else True + fastStoreHudCache = True if import_options['fastStoreHudCache'] == True else False fpdb_simple.fillCardArrays(len(names), base, category, card_values, card_suits) @@ -70,11 +70,11 @@ def ring_holdem_omaha(config, backend, db, cursor, base, category, site_hand_no, """stores a holdem/omaha hand into the database""" import_options = config.get_import_parameters() - saveActions = False if import_options['saveActions'] == 'False' else True - fastStoreHudCache = False if import_options['fastStoreHudCache'] == 'False' else True + saveActions = False if import_options['saveActions'] == False else True + fastStoreHudCache = True if import_options['fastStoreHudCache'] == True else False -# print "DEBUG: saveActions = '%s' fastStoreHudCache = '%s'"%(saveActions, fastStoreHudCache) -# print "DEBUG: import_options = ", import_options + #print "DEBUG: saveActions = '%s' fastStoreHudCache = '%s'"%(saveActions, fastStoreHudCache) + #print "DEBUG: import_options = ", import_options t0 = time() fpdb_simple.fillCardArrays(len(names), base, category, card_values, card_suits)