forge-sql-orm 2.0.19 → 2.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ForgeSQLORM.js
CHANGED
|
@@ -920,10 +920,11 @@ class ForgeSQLAnalyseOperation {
|
|
|
920
920
|
* Retrieves and analyzes slow queries from the database.
|
|
921
921
|
* @returns {Promise<SlowQueryNormalized[]>} The normalized slow query data
|
|
922
922
|
*/
|
|
923
|
+
// CLUSTER_SLOW_QUERY STATISTICS
|
|
923
924
|
async analyzeSlowQueries() {
|
|
924
925
|
const results = await this.forgeOperations.fetch().executeRawSQL(`
|
|
925
926
|
SELECT *
|
|
926
|
-
FROM information_schema.slow_query
|
|
927
|
+
FROM information_schema.slow_query
|
|
927
928
|
ORDER BY time DESC
|
|
928
929
|
`);
|
|
929
930
|
return results.map((row) => this.normalizeSlowQuery(row));
|