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.mjs
CHANGED
|
@@ -918,10 +918,11 @@ class ForgeSQLAnalyseOperation {
|
|
|
918
918
|
* Retrieves and analyzes slow queries from the database.
|
|
919
919
|
* @returns {Promise<SlowQueryNormalized[]>} The normalized slow query data
|
|
920
920
|
*/
|
|
921
|
+
// CLUSTER_SLOW_QUERY STATISTICS
|
|
921
922
|
async analyzeSlowQueries() {
|
|
922
923
|
const results = await this.forgeOperations.fetch().executeRawSQL(`
|
|
923
924
|
SELECT *
|
|
924
|
-
FROM information_schema.slow_query
|
|
925
|
+
FROM information_schema.slow_query
|
|
925
926
|
ORDER BY time DESC
|
|
926
927
|
`);
|
|
927
928
|
return results.map((row) => this.normalizeSlowQuery(row));
|