开发者在Hacker News上展示了Minigraf,一个用Rust编写的嵌入式图数据库项目1。该数据库采用单文件设计,提供类似SQLite的简单接口,支持Datalog递归查询和双时间时间旅行功能1。Minigraf主要面向AI代理、移动应用和浏览器应用的图形存储需求1。
项目支持多平台部署,包括Rust原生、WASM、Android/iOS移动设备、IoT、Python、Node.js、Java和C等1。性能方面,100万个事实点的查询耗时4.3-4.5秒,数据库打开时间为1.31秒,峰值堆内存消耗1.05GB1。单个文件支持的数据库事实大小限制为4080字节,而内存数据库则无限制1。
当前版本为2.0.21。根据支持政策,v2.x在v3.0.0发布后将获得12个月的数据完整性和安全修复支持1。项目已知存在的问题是单个transact中相同属性的多个值可能读回为一个值1。
A developer has introduced Minigraf, an embedded graph database written in Rust that provides a SQLite-like interface for storing and querying graph data 1. The project supports Datalog queries with recursion capabilities and bi-temporal time travel functionality, enabling users to query data as it existed at any point in time 1.
Minigraf is designed as a single-file database that runs across multiple platforms, including native Rust, WebAssembly, mobile devices (Android and iOS), IoT systems, and can be accessed through Python, Node.js, Java, and C bindings 1. Performance benchmarks show that querying one million facts takes 4.3 to 4.5 seconds, with a database open time of 1.31 seconds and peak heap memory usage of 1.05 GB 1. The database supports individual facts up to 4,080 bytes in file-based deployments, while in-memory databases have no size restrictions 1.
The current release is version 2.0.2, with a known issue where multiple values for the same attribute within a single transaction may be read back as a single value 1. The development team has committed to providing 12 months of data integrity and security fixes for the v2.x branch following the release of v3.0.0 1.
评论
还没有评论,欢迎留下第一条。