Debugging long running queries using callback

Debugging long running queries using callback

Twitter Post

 

Enable Logging

 

How to sort these logs by their duration of execution if you'd like them ordered from longest to shortest, so that the longest running queries are easier to locate:

Sort these logs from longest to shortest

Another option if you're worried about memory usage with collecting query logs, is listening for the "QueryExecuted" event:

Query executed Event

 

Categories: Category 1