mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-12 05:44:06 +00:00
indexer: allow batch processing of places
Request and process multiple place_ids at once so that Postgres can make better use of caching and there are less transactions running.
This commit is contained in:
@@ -21,7 +21,7 @@ class ProgressLogger(object):
|
||||
self.total_places = total
|
||||
self.done_places = 0
|
||||
self.rank_start_time = datetime.now()
|
||||
self.next_info = 50 if log.isEnabledFor(logging.INFO) else total + 1
|
||||
self.next_info = 100 if log.isEnabledFor(logging.INFO) else total + 1
|
||||
|
||||
def add(self, num=1):
|
||||
""" Mark `num` places as processed. Print a log message if the
|
||||
|
||||
Reference in New Issue
Block a user