public static string FindDynamicIndexName(this DocumentDatabase self, string entityName, IndexQuery query) { var result = new DynamicQueryOptimizer(self).SelectAppropriateIndex(entityName, query.Clone()); if (result.MatchType == DynamicQueryMatchType.Complete) return result.IndexName; return null; }
public static List<DynamicQueryOptimizer.Explanation> ExplainDynamicIndexSelection(this DocumentDatabase self, string entityName, IndexQuery query) { var explanations = new List<DynamicQueryOptimizer.Explanation>(); new DynamicQueryOptimizer(self) .SelectAppropriateIndex(entityName, query.Clone(), explanations); return explanations; }
public static string FindDynamicIndexName(this DocumentDatabase self, string entityName, IndexQuery query) { return new DynamicQueryOptimizer(self).SelectAppropriateIndex(entityName, query.Clone()); }