Feature Request
Priority: P2 (Medium)
Description
CosmosDB Shell shows query metrics and RU cost but does not provide query plan visualization or explain functionality. Understanding how queries are executed helps developers optimize performance.
Comparable Features in Other Shells
- mongosh:
cursor.explain(), PlanCache methods
- sqlcmd: Execution plans via
SET SHOWPLAN
Proposed Behavior
Add an explain command or --explain flag:
- Show query execution plan
- Display index utilization details
- Show which indexes were used vs. scanned
- Indicate full scan vs. index seek
Example Usage
query "SELECT * FROM c WHERE c.city = 'Seattle'" --explain
explain "SELECT * FROM c WHERE c.status = 'active'"
Feature Request
Priority: P2 (Medium)
Description
CosmosDB Shell shows query metrics and RU cost but does not provide query plan visualization or explain functionality. Understanding how queries are executed helps developers optimize performance.
Comparable Features in Other Shells
cursor.explain(),PlanCachemethodsSET SHOWPLANProposed Behavior
Add an
explaincommand or--explainflag:Example Usage