We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7e26ae commit bc58542Copy full SHA for bc58542
redis/client.py
@@ -404,7 +404,12 @@ def parse_slowlog_get(response, **options):
404
'id': item[0],
405
'start_time': int(item[1]),
406
'duration': int(item[2]),
407
- 'command': space.join(item[3])
+ 'command':
408
+ # Redis Enterprise injects another entry at index [3], which has
409
+ # the complexity info (i.e. the value N in case the command has
410
+ # an O(N) complexity) instead of the command.
411
+ space.join(item[3]) if isinstance(item[3], list) else
412
+ space.join(item[4])
413
} for item in response]
414
415
0 commit comments