perf: 优化一下,去掉 rbac 引起的 sql查询

pull/10806/head
ibuler 1 year ago committed by Jiangjie.Bai
parent fa24a8e2f3
commit 1ca71f78ed

@ -110,7 +110,7 @@ class SQLCountMiddleware:
def __call__(self, request): def __call__(self, request):
from django.db import connection from django.db import connection
response = self.get_response(request) response = self.get_response(request)
response['X-JMS-SQL-COUNT'] = len(connection.queries) response['X-JMS-SQL-COUNT'] = len(connection.queries) - 2
return response return response

Loading…
Cancel
Save