Project

General

Profile

« Previous | Next » 

Revision 2044

bin/map: Turn parallel processing off by default. This should fix "Cannot allocate memory" errors in large imports.

View differences:

map
98 98
    by_col = in_db_config == out_db_config and opts.env_flag('by_col', False,
99 99
        env_names) # by-column optimization only applies if mapping to same DB
100 100
    if test: cpus_default = 0
101
    else: cpus_default = None
101
    else: cpus_default = 0 # or None to use parallel processing by default
102 102
    cpus = util.cast(int, util.none_if(opts.get_env_var('cpus', cpus_default,
103 103
        env_names), u''))
104 104
    

Also available in: Unified diff