Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
KenyonY committed Dec 26, 2023
1 parent ab99887 commit 79f2e1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ You can use it just like a Python dictionary without having to worry about block

- **Thread-Safety**: Employs only necessary locks to ensure safe concurrent access while balancing performance.

## TODO

- [x] Client-Server Architecture
- [ ] Benchmark
---

## Quick Start
Expand Down Expand Up @@ -111,7 +107,7 @@ print(len(db))
```

### Tips
- `flaxkv` provides performance close to native dictionary (in-memory) access as a persistent database! (There should be a benchmark here)
- `flaxkv` provides performance close to native dictionary (in-memory) access as a persistent database! (See benchmark below)
- You may have noticed that in the previous example code, `db.close()` was not used to release resources! Because all this will be automatically handled by `flaxkv`. Of course, you can also manually call db.close() to immediately release resources.
- Since `flaxkv` saves data by buffered writing, this feature of delayed writing may not write data to the disk in time in some scenarios (such as in Jupyter),
in this case, you can use `db.write_immediately()` to immediately trigger a write operation.
Expand Down
2 changes: 1 addition & 1 deletion README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ print(len(db))

### Tips

- `flaxkv`作为持久化数据库提供了接近原生字典(内存)存取的性能!(这里应存在一个benchmark)
- `flaxkv`作为持久化数据库提供了接近原生字典(内存)存取的性能!(见下文benchmark)
- 也许你注意到在前面的示例代码中并没有使用到`db.close()`来进行资源释放!因为这一切都将被`flaxkv`自动处理。 当然也可以手动调用 `db.close()` 来立即释放资源
- 由于`flaxkv`通过缓冲写入的方式来保存数据,这种延迟写入的特性在一些场景(如jupyter中)下将不能及时将数据写入磁盘,
此时可使用`db.write_immediately()`来立即触发写入操作。
Expand Down

0 comments on commit 79f2e1f

Please sign in to comment.