Use default pool size (CPU count) in ETL
This commit is contained in:
parent
3f9c9f3221
commit
d9797385d9
@ -22,7 +22,7 @@ def main(ab_path, mm_path):
|
||||
zipped_paths = zip(ab_paths, mm_paths)
|
||||
|
||||
# parallel map over tiles
|
||||
with Pool(4) as p:
|
||||
with Pool() as p:
|
||||
p.starmap(check, zipped_paths)
|
||||
|
||||
def check(ab_path, mm_path):
|
||||
|
0
etl/create_building_records.sh
Normal file → Executable file
0
etl/create_building_records.sh
Normal file → Executable file
@ -25,7 +25,7 @@ def main(ab_path, mm_path):
|
||||
zipped_paths = zip(mm_paths, toid_paths)
|
||||
|
||||
# parallel map over tiles
|
||||
with Pool(4) as p:
|
||||
with Pool() as p:
|
||||
p.starmap(filter, zipped_paths)
|
||||
|
||||
def filter(mm_path, toid_path):
|
||||
|
Loading…
Reference in New Issue
Block a user