Removed infi.clickhouse_orm insert batching

This commit is contained in:
M1ha 2019-01-22 11:40:24 +05:00
parent de25af223a
commit 056aa0c5f1

View File

@ -183,7 +183,7 @@ class ClickHouseModel(with_metaclass(ClickHouseModelMeta, InfiModel)):
:return: :return:
""" """
if batch: if batch:
cls.get_database(for_write=True).insert(batch) cls.get_database(for_write=True).insert(batch, batch_size=len(batch))
@classmethod @classmethod
def sync_batch_from_storage(cls): def sync_batch_from_storage(cls):