Expand description
MoteDB Storage Engine
面向嵌入式具身智能的高性能多模态数据库存储引擎
§核心特性
- 支持 TENSOR/SPATIAL/TEXT/TIMESTAMP 多模态数据
- 查询延迟 P99 ≤50ms
- 写入吞吐 ≥200 rows/sec
- 内存占用 ≤35MB
§架构
- 存储层: WAL + Fragmented Column Store (5K rows/fragment)
- 索引层: Vamana (vector) + R-Tree (spatial) + Inverted (text) + B+Tree (timestamp)
- 查询层: Cost-based optimizer + Volcano-style executor
- 事务层: MVCC + Write-Ahead Logging
Re-exports§
pub use config::DBConfig;pub use config::DurabilityLevel;pub use config::LSMConfig;pub use config::WALConfig;pub use database::MoteDB;pub use database::DatabaseStats;pub use database::VectorIndexStats;pub use database::SpatialIndexStats;pub use database::QueryProfile;pub use database::TransactionStats;pub use catalog::TableRegistry;pub use sql::execute_sql;pub use sql::QueryResult;
Modules§
- cache
- Cache module - LRU caches for performance optimization
- catalog
- config
- Database configuration and durability levels
- database
- Database Module - Modularized Architecture
- distance
- Distance metrics for vector similarity computation
- ffi
- FFI (Foreign Function Interface) for C/Python/Node.js
- index
- Index layer implementation
- query
- Query execution layer
- sql
- storage
- Storage layer implementation
- tokenizers
- txn
- Transaction layer implementation
- types
- Multi-modal data types for MoteDB
Macros§
- debug_
log - Debug-only logging macro Only prints in debug builds, silenced in release builds
Structs§
- Database
- MoteDB 数据库实例