Statistics
The Highest Post







Statistics
Count 94
Avg 21.00
Min 21
Max 21
Angualr Top questions

Details



Review the Slow Queries log? The Slow Queries log aggregates the data for similar queries. The platform records any SQL a statement where the total execution time exceeds five seconds. Not every slow query is a concern—you can expect to have a few. The slow queries that you need to be concerned with are the user-created tables, those that begin with “u_.” 1. Navigate to System Diagnostics > Stats > Slow Queries to see your Slow Queries log. The platform records any SQL statement that takes more than 100ms to complete. The Slow Queries log groups these transactions into similar patterns, providing you with an example set of parameters. 2. Type u_ in the Example text box. The slow query log records the slow queries’ patterns since the beginning of time (or since the last time sys_query_pattern was truncated). You may find the results more meaningful by applying a filter to show only patterns that were first sighted in the last month and that occurred more than 100 times. If you click through to an individual query pattern record, you’ll see an example URL where the query was generated, the first and last sighting, the number of executions, and the average execution time. The stack trace of the thread executing the query also displays. From here: 1. Cross-reference which element on the screen requested the information. 2. Once you know this, you can review the gauge or list that made the call and verify whether it would benefit from refactoring or supporting with an index. Many times, you can significantly reduce the execution time by simply adding active=1 to a query
Related Topics