@@ -548,6 +885,13 @@ export const ResultsView: React.FC = ({ isMongoDB, queryResult
>
Query Stats
+
+ Index Advisor
+
{activeTab === ResultsTabs.Results && (
@@ -558,7 +902,30 @@ export const ResultsView: React.FC = ({ isMongoDB, queryResult
/>
)}
{activeTab === ResultsTabs.QueryStats && }
+ {activeTab === ResultsTabs.IndexAdvisor && (
+
+ )}
);
};
+export interface IndexingPolicyStore {
+ indexingPolicies: { [containerId: string]: IndexingPolicy };
+ setIndexingPolicyFor: (containerId: string, indexingPolicy: IndexingPolicy) => void;
+}
+
+export const useIndexingPolicyStore = create