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:
Sarah Hoffmann
2020-07-29 17:20:30 +02:00
parent 2323923bec
commit 5be084e0f5
2 changed files with 20 additions and 14 deletions

View File

@@ -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