Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DNM] cache: add block cache for table #185

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wangnengjie
Copy link
Contributor

@wangnengjie wangnengjie commented Jul 25, 2022

DO NOT MERGE!
This is just an example impl for block cache. The design of LRU is copied from leveldb. (I'm a Rust beginner. So the code is quite ugly.)
Currently, as agatedb opens every table in mmap mode, the block cache is nearly useless.(sorry I misunderstand mmap)
I'll add some test for block cache later.
relate issues:
#153
#164

Signed-off-by: wangnengjie <751614701@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant