mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2025-07-09 15:42:25 +03:00
Bugfix in ClickHouseMultiModel sync
This commit is contained in:
parent
ecff04aaf2
commit
e81a6b5e4a
|
@ -229,7 +229,7 @@ class ClickHouseMultiModel(ClickHouseModel):
|
||||||
batches = {}
|
batches = {}
|
||||||
with statsd.timer(statsd_key.format('get_insert_batch')):
|
with statsd.timer(statsd_key.format('get_insert_batch')):
|
||||||
for model_cls in cls.sub_models:
|
for model_cls in cls.sub_models:
|
||||||
batches[model_cls] = cls.get_insert_batch(import_objects)
|
batches[model_cls] = model_cls.get_insert_batch(import_objects)
|
||||||
|
|
||||||
with statsd.timer(statsd_key.format('insert')):
|
with statsd.timer(statsd_key.format('insert')):
|
||||||
for model_cls, batch in batches.items():
|
for model_cls, batch in batches.items():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user