public QueryRunner(DocumentDatabase database) : base(database) { _static = new StaticIndexQueryRunner(database); _dynamic = database.Configuration.Indexing.DisableQueryOptimizerGeneratedIndexes ? (AbstractQueryRunner) new InvalidQueryRunner(database) : new DynamicQueryRunner(database); _collection = new CollectionQueryRunner(database); }
public QueryRunner(DocumentDatabase database) : base(database) { _static = new StaticIndexQueryRunner(database); _dynamic = database.Configuration.Indexing.DisableQueryOptimizerGeneratedIndexes ? (AbstractQueryRunner) new InvalidQueryRunner(database) : new DynamicQueryRunner(database); _collection = new CollectionQueryRunner(database); _graph = new GraphQueryRunner(database); _currentlyRunningQueries = new ConcurrentSet <ExecutingQueryInfo>(); }