Skip to content

Commit f5c1d8d

Browse files
committed
Product feedback
1 parent 3b7112d commit f5c1d8d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/tools/atlas/read/getPerformanceAdvisor.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ export class GetPerformanceAdvisorTool extends AtlasToolBase {
7676

7777
// Inserts the performance advisor data with the relevant section header if it exists
7878
const performanceAdvisorData = [
79-
`## Suggested Indexes\n${hasSuggestedIndexes ? JSON.stringify(suggestedIndexesResult.suggestedIndexes) : "No suggested indexes found."}`,
79+
`## Suggested Indexes\n${
80+
hasSuggestedIndexes
81+
? `Note: The "Weight" field is measured in bytes, and represents the estimated number of bytes saved in disk reads per executed read query that would be saved by implementing an index suggestion. Please convert this to MB or GB for easier readability.\n${JSON.stringify(suggestedIndexesResult.suggestedIndexes)}`
82+
: "No suggested indexes found."
83+
}`,
8084
`## Drop Index Suggestions\n${hasDropIndexSuggestions ? JSON.stringify(dropIndexSuggestionsResult) : "No drop index suggestions found."}`,
8185
`## Slow Query Logs\n${hasSlowQueryLogs ? JSON.stringify(slowQueryLogsResult.slowQueryLogs) : "No slow query logs found."}`,
8286
`## Schema Suggestions\n${hasSchemaSuggestions ? JSON.stringify(schemaSuggestionsResult.recommendations) : "No schema suggestions found."}`,

0 commit comments

Comments
 (0)