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

是否对经常需要写入的KV对进行地址保存 #123

Open
wireless-guy opened this issue Jul 20, 2021 · 1 comment
Open

是否对经常需要写入的KV对进行地址保存 #123

wireless-guy opened this issue Jul 20, 2021 · 1 comment

Comments

@wireless-guy
Copy link

Hi Armink,

在我们应用需要经常对某个特殊的KV对进行写入,类似于counter写入性质的,counter值每增加1就写需要写入1次。这种情况下每次写入是可能需要花大量的时间去Flash搜索找到这个Key,然后再进行写入。是否支持对于这种特殊的KV对,每次写入完成后存储最后一次的地址,索引信息,使得下一次数据写入时更加快速查找。

另外我们要存储的KV对是一个结构体数组,可能需要对数组的里面某个下标i进行写入,是否支持基于offset方式对某个KV的特定index数据进行写入。

谢谢。

@armink
Copy link
Owner

armink commented Jul 20, 2021

试试 V3.0 的版本?如果数量不大的情况会快很多, README 里有介绍

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

No branches or pull requests

2 participants