Comments (8)
在 fdb_cfg.h 中配置即可
from flashdb.
#define FDB_WRITE_GRAN 1 这个确实配置错了
但是该正确以后,value字符数多了 还是存不进去 不知道这value的最大数 在哪里配置
from flashdb.
#define FDB_WRITE_GRAN 1 这个确实配置错了
但是该正确以后,value字符数多了 还是存不进去 不知道这value的最大数 在哪里配置
好像没有这个参数配置
from flashdb.
在 fdb_cfg.h 中配置即可
kv大小不好设置 我想换ts试试的 result = fdb_tsdb_init(&tsdb, "liandong", "fdb_tsdb1", get_time, 20*1024, NULL);
还是不能初始化
[FlashDB][tsl][liandong] (applications\FlashDB\src\fdb_tsdb.c:748) (max_len < db_sec_size(db)) has assert failed at fdb_tsdb_init.
from flashdb.
如果是设置 TSDB 的 MAX_LEN ,可以通过 fdb_tsdb_init 来设置
from flashdb.
如果是设置 TSDB 的 MAX_LEN ,可以通过 fdb_tsdb_init 来设置
我设置了20*1024 都设置不了的
[FlashDB][tsl][liandong] (applications\FlashDB\src\fdb_tsdb.c:748) (max_len < db_sec_size(db)) has assert failed at fdb_tsdb_init.
from flashdb.
那说明是你的 扇区设置的太小了,可以通过 control 来调整扇区大小 http://armink.gitee.io/flashdb/#/zh-cn/api?id=%e6%8e%a7%e5%88%b6-tsdb
from flashdb.
那说明是你的 扇区设置的太小了,可以通过 control 来调整扇区大小 http://armink.gitee.io/flashdb/#/zh-cn/api?id=%e6%8e%a7%e5%88%b6-tsdb
修改了下,还是没有用,最大只能设置1024
int len=1024*1024;
int len2=1024*50;
fdb_tsdb_control(&tsdb, FDB_TSDB_CTRL_SET_ROLLOVER, &len);
fdb_tsdb_control(&tsdb, FDB_TSDB_CTRL_SET_SEC_SIZE, &len2);
rt_thread_delay(100);
result = fdb_tsdb_init(&tsdb, "liandong", "fdb_tsdb1", get_time, 40*1024, NULL);
if (result != FDB_NO_ERR) {
return -1;
}
[FlashDB] You can get the latest version on https://github.com/armink/FlashDB .
[FlashDB] (applications\FlashDB\src\fdb.c:68) (db->sec_size % block_size == 0) has assert failed at _fdb_init_ex.
from flashdb.
Related Issues (20)
- fdb_tsl_iter_by_time 函数异常 HOT 6
- 功能建议:TSDB添加主键Key索引 HOT 3
- install Flash DB on ESP32 HOT 2
- ESP32 Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
- 读写地址异常问题 HOT 8
- Error: The KV (@0x0027833F) CRC32 check failed! HOT 3
- 请问更新`fdb_kvdb.ver_num`后,新的默认 KV 集合中原有的键的值会被更新吗? HOT 1
- 请问fdb_kvdb_init支持不同进程对同一数据库多次初始化获取kvdb对象吗? HOT 4
- KVDB性能测试有吗
- ESP32 Demo issue with IDF 5.1.1
- tsdb 在空间耗尽 擦除旧数据写入新数据后的两个bug HOT 1
- Python project
- FlashDB移植到FreeRTOS是在fal_def.h中的FAL_REALLOC要如何处理 HOT 1
- `db_lock()` and `db_unlock()` are not used in pairs in _fdb_kv_load() ? HOT 1
- TSDB设置10K的BUFF SIZE时,写入的数据不能迭代查询 HOT 17
- FlashDB怎样删除数据记录?
- 通过fdb_kvdb_control参数而不是宏,控制kv_auto_update HOT 1
- 移植后norlfash的默认配置参数无法写入成功,请问下可能是什么原因? HOT 1
- Question: any reason to check that new entry timestamp is newer than previous? HOT 4
- 关于默认参数表写入超过48字节的字符型kv引发的问题 HOT 3
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 flashdb.