mirror of
https://github.com/zulip/zulip.git
synced 2025-10-31 20:13:46 +00:00
Bump slow query threshold to 1.2s
(imported from commit 8d97fc22d208274bc57b884828957dacf396348a)
This commit is contained in:
@@ -66,7 +66,7 @@ def format_timedelta(timedelta):
|
||||
return "%.0fms" % (timedelta_ms(timedelta),)
|
||||
|
||||
def is_slow_query(time_delta, path):
|
||||
if time_delta < 1:
|
||||
if time_delta < 1.2:
|
||||
return False
|
||||
is_exempt = \
|
||||
path in ["/activity", "/json/report_error",
|
||||
|
||||
Reference in New Issue
Block a user