protected override async Task SetupCollectionAsync(IMongoCollection <MongoContentEntity> collection, CancellationToken ct = default) { if (useWildcardIndex) { await collection.Indexes.CreateOneAsync( new CreateIndexModel <MongoContentEntity>( Index.Wildcard() ), null, ct); } var skipIndex = useWildcardIndex; await queryAsStream.PrepareAsync(collection, skipIndex, ct); await queryBdId.PrepareAsync(collection, skipIndex, ct); await queryByIds.PrepareAsync(collection, skipIndex, ct); await queryByQuery.PrepareAsync(collection, skipIndex, ct); await queryReferences.PrepareAsync(collection, skipIndex, ct); await queryReferrers.PrepareAsync(collection, skipIndex, ct); await queryScheduled.PrepareAsync(collection, skipIndex, ct); }
protected override async Task SetupCollectionAsync(IMongoCollection <MongoContentEntity> collection, CancellationToken ct = default) { await queryAsStream.PrepareAsync(collection, ct); await queryBdId.PrepareAsync(collection, ct); await queryByIds.PrepareAsync(collection, ct); await queryByQuery.PrepareAsync(collection, ct); await queryReferences.PrepareAsync(collection, ct); await queryReferrers.PrepareAsync(collection, ct); await queryScheduled.PrepareAsync(collection, ct); }