Project

General

Profile

« Previous | Next » 

Revision 2050

bin/map, sql.py: Turned SQL query caching back on because benchmarks of just the caching on vs. off reveal that it does reduce processing time significantly. However, there is a slowdown that was introduced between the time caching was added and the time the same XML tree was used for each node, which was giving the false indication that the slowdown was due to the caching.

View differences:

lib/sql.py
97 97

  
98 98
class DbConn:
99 99
    def __init__(self, db_config, serializable=True, log_debug=log_debug_none,
100
        caching=False):
100
        caching=True):
101 101
        self.db_config = db_config
102 102
        self.serializable = serializable
103 103
        self.log_debug = log_debug
bin/map
96 96
    in_table = opts.get_env_var('in_table', None, env_names)
97 97
    
98 98
    # Optimization
99
    cache_sql = opts.env_flag('cache_sql', False, env_names)
99
    cache_sql = opts.env_flag('cache_sql', True, env_names)
100 100
    by_col = in_db_config == out_db_config and opts.env_flag('by_col', False,
101 101
        env_names) # by-column optimization only applies if mapping to same DB
102 102
    if test: cpus_default = 0

Also available in: Unified diff