mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Only monitor river_stories for db times
This commit is contained in:
parent
b1de95dd20
commit
bddd0ca215
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,8 @@ class DBProfilerMiddleware:
|
|||
def process_request(self, request):
|
||||
setattr(request, 'activated_segments', [])
|
||||
if (
|
||||
request.path.startswith('/reader/feed') or request.path.startswith('/reader/river')
|
||||
# request.path.startswith('/reader/feed') or
|
||||
request.path in ['/reader/river_stories']
|
||||
) and random.random() < 0.01:
|
||||
request.activated_segments.append('db_profiler')
|
||||
connection.use_debug_cursor = True
|
||||
|
|
Loading…
Add table
Reference in a new issue