Project

General

Profile

« Previous | Next » 

Revision 1985

bin/map: Fixed bug where mapping to same DB wouldn't work because by-column optimization wasn't implemented yet, by turning it off by default and allowing it to be enabled with an env var

View differences:

bin/map
76 76
    if end != None: end += start
77 77
    
78 78
    # Optimization
79
    by_col = opts.env_flag('by_col', False, env_names)
79 80
    if test: cpus_default = 0
80 81
    else: cpus_default = None
81 82
    cpus = util.cast(int, util.none_if(opts.get_env_var('cpus', cpus_default,
......
261 262
                table = sql.qual_name(in_db, schema, table)
262 263
                table_is_esc = True
263 264
            
264
            if in_db_config == out_db_config: # mapping to same DB
265
                # Use by-column optimization
265
            if by_col and in_db_config == out_db_config:
266
                # Mapping to same DB and by-column optimization enabled
266 267
                raise NotImplementedError(
267 268
                    'By-column optimization not available yet')
268 269
            else:

Also available in: Unified diff