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

分区越大,插入速度越慢 #280

Open
Wangs121 opened this issue Mar 13, 2024 · 2 comments
Open

分区越大,插入速度越慢 #280

Wangs121 opened this issue Mar 13, 2024 · 2 comments

Comments

@Wangs121
Copy link

使用记录bootcount的例子,norflash使用W25Q128JV,
主函数移植读取、写入。
读取基本不占事件。写入速度随分区大小变大越来越慢
如果fal的扇区大小设为8K,写一次大概需要2ms,
设置64KB,写一次大概需要10ms
设置4M,写一次大概需要500ms
修改FDB_KV_CACHE_TABLE_SIZE也只能提升前几次的写入速度

@armink
Copy link
Owner

armink commented Mar 15, 2024

这是正常的,可以通过增加多个分区,相当于 分表 的模式来提升性能

@yuehunliren
Copy link

这是正常的,可以通过增加多个分区,相当于 分表 的模式来提升性能

那数据库对象 fdb_kvdb也需要分多个出来嘛, 我分了10个区,那也要相应的分10个对象吗

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

3 participants