We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f85711a commit e50ced4Copy full SHA for e50ced4
1 file changed
packages/orm/src/client/client-impl.ts
@@ -443,7 +443,7 @@ export class ClientImpl {
443
async $diagnostics(): Promise<Diagnostics> {
444
return {
445
zodCache: this.inputValidator.zodFactory.cacheStats,
446
- slowQueries: this.slowQueries.map((q) => ({ ...q })),
+ slowQueries: this.slowQueries.map((q) => ({ ...q })).sort((a, b) => b.durationMs - a.durationMs),
447
};
448
}
449
0 commit comments