mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2024-11-15 05:46:41 +03:00
Measure time for inserting tuples
This commit is contained in:
parent
ef6fc46c5c
commit
4249b0e2b9
|
@ -116,8 +116,10 @@ class Database(InfiDatabase):
|
|||
statsd.incr(statsd_key, lines)
|
||||
yield buf.getvalue()
|
||||
|
||||
with statsd.timer(statsd_key):
|
||||
self._send(next(gen()))
|
||||
# For testing purposes
|
||||
for data in gen():
|
||||
with statsd.timer(statsd_key):
|
||||
self._send(data)
|
||||
|
||||
|
||||
class ConnectionProxy:
|
||||
|
|
Loading…
Reference in New Issue
Block a user