Project

General

Profile

« Previous | Next » 

Revision 2897

bin/map: connect_db(): Only use autocommit mode if verbosity > 2, because it causes the intermediate tables to be created as permanent tables, which you don't want unless you're actually debugging (verbosity = 2 is normal for column-based import)

View differences:

bin/map
133 133
    def connect_db(db_config):
134 134
        log('Connecting to '+sql.db_config_str(db_config))
135 135
        return sql.connect(db_config, caching=cache_sql,
136
            autocommit=debug and commit, log_debug=log_debug)
136
            autocommit=verbosity > 2 and commit, log_debug=log_debug)
137 137
    
138 138
    if end != None: end_str = str(end-1) # end is one past the last #
139 139
    else: end_str = 'end'

Also available in: Unified diff