From 056aa0c5f1308b3dcd617e23e992419d3060d381 Mon Sep 17 00:00:00 2001 From: M1ha Date: Tue, 22 Jan 2019 11:40:24 +0500 Subject: [PATCH] Removed infi.clickhouse_orm insert batching --- src/django_clickhouse/clickhouse_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/django_clickhouse/clickhouse_models.py b/src/django_clickhouse/clickhouse_models.py index 03d9675..3848973 100644 --- a/src/django_clickhouse/clickhouse_models.py +++ b/src/django_clickhouse/clickhouse_models.py @@ -183,7 +183,7 @@ class ClickHouseModel(with_metaclass(ClickHouseModelMeta, InfiModel)): :return: """ if batch: - cls.get_database(for_write=True).insert(batch) + cls.get_database(for_write=True).insert(batch, batch_size=len(batch)) @classmethod def sync_batch_from_storage(cls):