You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from django_performance_testing.signals import results_collected
def dump_queries(sender, results, context, **kwargs):
try:
write_result, = (r for r in results if r.name =='write')
if write_result.queries:
print '\n'.join(q['sql'] for q in write_result.queries)
except ValueError:
pass
results_collected.connect(dump_queries)
with QueryBatchLimit(write=0):
....
The text was updated successfully, but these errors were encountered:
current workaround to achieve this is
The text was updated successfully, but these errors were encountered: