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)
|
statsd.incr(statsd_key, lines)
|
||||||
yield buf.getvalue()
|
yield buf.getvalue()
|
||||||
|
|
||||||
|
# For testing purposes
|
||||||
|
for data in gen():
|
||||||
with statsd.timer(statsd_key):
|
with statsd.timer(statsd_key):
|
||||||
self._send(next(gen()))
|
self._send(data)
|
||||||
|
|
||||||
|
|
||||||
class ConnectionProxy:
|
class ConnectionProxy:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user