public interface AdvancedDatasetConfigurationBuilder extends DatasetConfigurationBuilder
dataset
configuration options.
This interface defines advanced configuration options that most users will not require. If you find your way here, make sure you understand what you are tweaking and that some of these tweaks may not have the same impact across versions.
Modifier and Type | Method and Description |
---|---|
AdvancedDatasetConfigurationBuilder |
concurrencyHint(int hint)
Gives a hint to the desired level of concurrency.
|
advanced, build, disk, disk, durabilityEventual, durabilityEveryMutation, durabilityTimed, index, offheap
AdvancedDatasetConfigurationBuilder concurrencyHint(int hint)
By default, a dataset
supports parallel operations, including writes.
As the number of write operations increases, contention among write operations may
degrade performance. Increasing the concurrency hint may improve performance of write-heavy
loads by increasing the support for parallel operations. This increase in concurrency
comes at the cost of additional memory overhead. Increasing the concurrency
hint will not improve the performance of all workloads -- if the write
activity is primarily against a limited number of records, for example
against one record, then increasing the concurrency level will not help.
The default concurrency of a dataset is based on hardware heuristics and should fit common usage. Changing the value is considered an advanced tuning and should imply a corresponding benchmark.
To reduce overhead, if a dataset is read-only or has a limited number of writes, you might also want to reduce the concurrency level.
Once a dataset is created with a given value, it cannot be changed without having to re-create the dataset.
hint
- the concurrency hintDatasetConfigurationBuilder
to continue with configuration