Coder Social home page Coder Social logo

Comments (5)

HikerPan avatar HikerPan commented on August 30, 2024 1

@HuanDeng 我在之前使用EasyFlash的时候,也遇到类似的情况。
经过一段时间的实践,EasyFlash和FlashDB不太适合使用在过大的内存空间里。
最好的使用场景是对一些kv进行配置,存储空间最好不要超过1M。
太大以后(例如32M),当存储的数据比较多的时候,查找会比较耗时。
我后来的方案就是留512K,给easyflash存储配置数据。其他的数据,使用了littlefs来进行存储。
@armink 老大,不知我的解释是否正确。
我看esp-idf里面也是这样的。NVS其实类似flashdb的功能,存储kv,文件系统存储其他数据。

from flashdb.

armink avatar armink commented on August 30, 2024

这个是数据库的首次格式化时间,第二次使用就没问题了,好像不太好缩短呢

或者,你确认需要 8192 这么多扇区来存放数据吗?能不能再降低一些

from flashdb.

HuanDeng avatar HuanDeng commented on August 30, 2024

时序数据库这个功能很好,可以免去自己管理物联网传感器采集的数据,但是时序数据在本机内能够保留得越多越好。另外,是否可以做一张索引表,标记哪些扇区需要擦除,在使用前擦除

from flashdb.

armink avatar armink commented on August 30, 2024

这个索引表存哪里呢?写入索引表也需要考虑掉电保护的逻辑,复杂度会不会提高呢。

from flashdb.

armink avatar armink commented on August 30, 2024

建议做好数据分区,同一类的数据放在一个数据库中,从数据库的角度去分库,降低检索时间

from flashdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.