Skip to content

Commit 2d566fd

Browse files
committed
Add fillBlockCache
1 parent 53807e9 commit 2d566fd

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ This driver uses semantic versioning:
3434

3535
- Added `collection.documents` for fetching multiple documents
3636

37+
- Added support for `fillBlockCache` query option
38+
3739
## [7.5.0] - 2021-04-22
3840

3941
### Added

src/database.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,12 @@ export type QueryOptions = {
293293
* will be returned in the `extra.stats.fullCount` attribute.
294294
*/
295295
fullCount?: boolean;
296+
/**
297+
* If set to `false`, the query data will not be stored in the RocksDB block
298+
* cache. This can be used to avoid thrashing he block cache when reading a
299+
* lot of data.
300+
*/
301+
fillBlockCache?: boolean;
296302
/**
297303
* An object with a `rules` property specifying a list of optimizer rules to
298304
* be included or excluded by the optimizer for this query. Prefix a rule

0 commit comments

Comments
 (0)