Comments (1)
From the README:
After writing data (be it,
insert
,remove
or committing a write batch), you can choose to callKeyspace::persist
which takes aFlushMode
parameter. By default every 1000ms data is fsynced asynchronously. Also when dropped, the keyspace will try to persist the journal synchronously.
Example
use fjall::{Config, FlushMode};
pub fn main() -> fjall::Result<()> {
let folder = std::path::Path::new("mydata");
let keyspace = Config::new(folder).open()?;
let items = keyspace.open_partition("items", Default::default())?;
// Write some data
items.insert("a", "hello")?;
items.insert("b", "world")?;
// Choose the FlushMode based on required durability guarantees
keyspace.persist(FlushMode::SyncAll)?;
Ok(())
}
from fjall.
Related Issues (20)
- Allow more characters in partition name. HOT 2
- Transactions HOT 2
- Make Keyspace loading PWD independent
- delete_range/delete_prefix
- WiscKey-like key-value separation
- Optimistic concurrency control through sequence number HOT 1
- Add cargo-build-all-features to CI
- thinking through: persistence if keyspace is dropped before opened partitions HOT 2
- level_ratio should be changeable retroactively
- Write with sync vs Write with flush only vs Write without any flushing
- Create axum-kv
- Create rocket-kv
- Think about backup strategies HOT 1
- unexpected warning : shard.rs:106: Invalid batch: found batch start inside batch HOT 6
- [Tracking] Breaking changes in V2 HOT 2
- Concurrency control through SSI
- SingleDelete
- impl Drop flush for Journal, resolve cyclic Arcs on Drop
- Level ratio is not recovered
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 fjall.