All Projects → armink → Flashdb

armink / Flashdb

Licence: apache-2.0
An ultra-lightweight database that supports key-value and time series data | 一款支持 KV 数据和时序数据的超轻量级数据库

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Flashdb

Ejdb
🏂 EJDB 2.0 — Embeddable JSON Database engine C library. Simple XPath like query language (JQL). Websockets / Android / iOS / React Native / Flutter / Java / Dart / Node.js bindings. Docker image.
Stars: ✭ 1,187 (+214.02%)
Mutual labels:  database, key-value, embedded
Szl
A lightweight, embeddable scripting language
Stars: ✭ 134 (-64.55%)
Mutual labels:  lightweight, iot, embedded
Easyflash
Lightweight IoT device information storage solution: KV/IAP/LOG. | 轻量级物联网设备信息存储方案:参数存储、在线升级及日志存储 ,全新一代版本请移步至 https://github.com/armink/FlashDB
Stars: ✭ 1,236 (+226.98%)
Mutual labels:  key-value, iot, embedded
Iotdb
Apache IoTDB
Stars: ✭ 1,221 (+223.02%)
Mutual labels:  database, tsdb, iot
Slowpoke
Low-level key/value store in pure Go.
Stars: ✭ 98 (-74.07%)
Mutual labels:  database, key-value, embedded
Warp10 Platform
The Most Advanced Time Series Platform
Stars: ✭ 227 (-39.95%)
Mutual labels:  database, tsdb, iot
Unqlite
An Embedded NoSQL, Transactional Database Engine
Stars: ✭ 1,583 (+318.78%)
Mutual labels:  database, key-value, embedded
Cubdb
Elixir embedded key/value database
Stars: ✭ 235 (-37.83%)
Mutual labels:  database, key-value, embedded
Questdb
An open source SQL database designed to process time series data, faster
Stars: ✭ 7,544 (+1895.77%)
Mutual labels:  database, tsdb
Permazen
Language-Natural Persistence Layer for Java
Stars: ✭ 265 (-29.89%)
Mutual labels:  database, key-value
Polodb
PoloDB is an embedded JSON-based database.
Stars: ✭ 282 (-25.4%)
Mutual labels:  database, embedded
Tock
A secure embedded operating system for microcontrollers
Stars: ✭ 3,258 (+761.9%)
Mutual labels:  iot, embedded
sabotage
a radical and experimental distribution based on musl libc and busybox
Stars: ✭ 502 (+32.8%)
Mutual labels:  lightweight, embedded
Immortaldb
🔩 A relentless key-value store for the browser.
Stars: ✭ 2,962 (+683.6%)
Mutual labels:  database, key-value
rosedb
🚀 A high performance NoSQL database based on bitcask, supports string, list, hash, set, and sorted set.
Stars: ✭ 2,957 (+682.28%)
Mutual labels:  embedded, key-value
Blynk Library
Blynk library for embedded hardware. Works with Arduino, ESP8266, Raspberry Pi, Intel Edison/Galileo, LinkIt ONE, Particle Core/Photon, Energia, ARM mbed, etc.
Stars: ✭ 3,305 (+774.34%)
Mutual labels:  iot, embedded
Waterius
Передача показаний воды по Wi-Fi. Watermeter Wi-Fi transmitter.
Stars: ✭ 295 (-21.96%)
Mutual labels:  iot, embedded
lwjson
Lightweight JSON parser for embedded systems
Stars: ✭ 66 (-82.54%)
Mutual labels:  lightweight, embedded
Crate
CrateDB is a distributed SQL database that makes it simple to store and analyze massive amounts of data in real-time.
Stars: ✭ 3,254 (+760.85%)
Mutual labels:  database, iot
Buntdb
BuntDB is an embeddable, in-memory key/value database for Go with custom indexing and geospatial support
Stars: ✭ 3,583 (+847.88%)
Mutual labels:  database, key-value

Build Status license docs

EN | 中文

Introduction

FlashDB is an ultra-lightweight embedded database that focuses on providing data storage solutions for embedded products. Different from traditional database based on file system, FlashDB combines the features of Flash and has strong performance and reliability. And under the premise of ensuring extremely low resource occupation, the service life of Flash should be extended as much as possible.

FlashDB provides two database modes:

  • Key-value database: It is a non-relational database that stores data as a collection of key-value pairs, where the key is used as a unique identifier. KVDB has simple operation and strong scalability.
  • Time Series Database: Time Series Database (TSDB), which stores data in time sequence. TSDB data has a timestamp, a large amount of data storage, and high insertion and query performance.

Usage scenario

Nowadays, there are more and more types of IoT products, and the types and total amount of data generated during operation are also increasing. FlashDB provides a variety of data storage solutions, not only has a small resource footprint, but also has a large storage capacity, which is very suitable for IoT products. The following are the main application scenarios:

  • Key-value database:
    • Product parameter storage
    • User configuration information storage
    • Small file management
  • Time Series Database:
    • Store dynamically generated structured data: such as environmental monitoring information collected by temperature and humidity sensors, human health information recorded in real time by smart bracelets, etc.
    • Record operation log: store operation log of product history, record of abnormal alarm, etc.

Key Features

  • Very small footprint, ram usage is almost 0;
  • Support multiple partitions, multiple instances. When the amount of data is large, the partition can be refined to reduce the retrieval time;
  • Support wear balance to extend Flash life;
  • Support Power-off protection function, high reliability;
  • Supports two KV types, string and blob, which is convenient for users to operate;
  • Support KV incremental upgrade, after product firmware upgrade, KVDB content also supports automatic upgrade;
  • Support to modify the status of each TSDB record to facilitate user management;

Performance and footprint

TSDB performance test 1 (nor flash W25Q64)

msh />tsl bench
Append 1250 TSL in 5 seconds, average: 250.00 tsl/S, 4.00 ms/per
Query total spent 2218 (ms) for 1251 TSL, min 1, max 2, average: 1.77 ms/per

Insert average: 4 ms, query average: 1.8 ms

TSDB performance test 2 (stm32f2 onchip flash)

msh />tsl bench
Append 13421 TSL in 5 seconds, average: 2684.20 tsl/S, 0.37 ms/per
Query total spent 1475 (ms) for 13422 TSL, min 0, max 1, average: 0.11 ms/per

Insert average: 0.37 ms, query average: 0.12 ms

Footprint (stm32f4 IAR8.20)

    Module                  ro code  ro data  rw data
    ------                  -------  -------  -------
    fdb.o                     276      232        1
    fdb_kvdb.o              4 584      356        1
    fdb_tsdb.o              1 160      236
    fdb_utils.o               418    1 024

The above is the map file information of IAR. It can be seen that the footprint of FlashDB is very small.

How to use

FlashDB provides comprehensive documentation, see: https://armink.github.io/FlashDB/#/

Quick access:

License

The project uses the Apache-2.0 open source protocol. For details, please read the contents of the LICENSE file in the project.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].