Removed monitoring, as it has strange avg results for all queries

and models
This commit is contained in:
M1ha 2019-01-23 10:40:37 +05:00
parent c934ff4df5
commit cac5fe9d52

View File

@ -26,11 +26,6 @@ class Database(InfiDatabase):
def _get_applied_migrations(self, migrations_package_name): def _get_applied_migrations(self, migrations_package_name):
raise NotImplementedError("This method is not supported by django_clickhouse.") raise NotImplementedError("This method is not supported by django_clickhouse.")
def _send(self, data, settings=None, stream=False):
statsd_key = "%s.query" % config.STATSD_PREFIX
with statsd.timer(statsd_key):
return super(Database, self)._send(data, settings=settings, stream=stream)
class ConnectionProxy: class ConnectionProxy:
_connections = {} _connections = {}