From 8e60ac10d1aa1ed6e44910ece0257ecd41eeb718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 15 Sep 2019 10:24:59 +0200 Subject: [PATCH] misc: reduce default batch size to 500 items (#36077) --- wcs_olap/cmd.py | 2 +- wcs_olap/wcs_api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wcs_olap/cmd.py b/wcs_olap/cmd.py index 9e6ceb8..d5c070d 100644 --- a/wcs_olap/cmd.py +++ b/wcs_olap/cmd.py @@ -96,7 +96,7 @@ def main2(): schema = defaults['schema'] pg_dsn = defaults['pg_dsn'] slugs = defaults.get('slugs', '').strip().split() or getattr(args, 'slug', []) - batch_size = int(defaults.get('batch_size', 1000)) + batch_size = int(defaults.get('batch_size', 500)) except KeyError, e: failure = True logger.error('configuration incomplete for %s: %s', url, e) diff --git a/wcs_olap/wcs_api.py b/wcs_olap/wcs_api.py index ec29285..047f1e9 100644 --- a/wcs_olap/wcs_api.py +++ b/wcs_olap/wcs_api.py @@ -211,7 +211,7 @@ class Category(BaseObject): class WcsApi(object): - def __init__(self, url, orig, key, verify=True, slugs=None, batch_size=1000): + def __init__(self, url, orig, key, verify=True, slugs=None, batch_size=500): self.url = url self.orig = orig self.key = key