Comments (1)
Yep detailed documentation on cache configurations is missing. We should really document each cache config with performance benchmarks when turned off vs on.
Everything is configurable, so you should be able to configure caching from being very high to almost no caching.
For now, similar to how you've disabled caching with segmentConfigOverride
in your code, you can try the same for sortedIndex
, hashIndex
, binarySearchIndex
, bloomFilter
and valuesConfig
(find them in DefaultConfigs)
Set the following for all the above blocks.
case action: IOAction.DecompressAction => IOStrategy.SynchronisedIO(cacheOnAccess = false)
Just a note, in your settings above you've disabled caching opened files with this setting.
.copyWithFileOpenIOStrategy(IOStrategy.AsyncIO(cacheOnAccess = false))
So every thread that tries to access a file would open a new java.nio.FileChannel
. Unless you have an extreme use-case I would set this to cacheOnAccess = true
so there are less concurrently opened FileChannel
s for a file.
from swaydb.
Related Issues (20)
- Implement `BlockCacheSkipListIO`
- Remove inheritance from test-cases HOT 1
- Implement a `Scheduler` that is backed by compaction thread
- Use base `SwayDBException` for all internal `Exception`s
- Benchmark `SliceBuilder.addAll` which expands dynamically
- `BlockCache` should not create a `ListBuffer`
- Improve testing
- `ByteBufferCleaner` needs a cleaner function for JDK 17
- Implement blocked bloom-filter
- `Immutable` data structures
- Implement `getOrNull`
- Remove `IO.Defer`
- Cyclic initialization & deinitilization of persistent.Map cause memory leak HOT 1
- High rate of ClosedChannelException during compaction HOT 1
- Use value classes to reduce memory allocation
- Never ending loop "Competing reserved resource accessed via runSync" HOT 3
- Switch `Slice(1,2, ...)` API to create `new Array` without deferring
- CVE-2022-36944 - Scala vulnerability with 9.8 score HOT 2
- wrong method names in documentation for sortedKeyIndex HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swaydb.