# LatticeDB：像 SQLite 一样的图数据库

Original title: LatticeDB – Like SQLite but for graph databases

> Hacker News story 49437049 · language: zh · submitted 2026-08-25
> Web version: https://zeli.app/zh/story/49437049
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 178 · by [smiths1999](<https://news.ycombinator.com/user?id=smiths1999>) · 💬 48
[original](<https://github.com/jeffhajewski/latticedb>) · [HN discussion](<https://news.ycombinator.com/item?id=49437049>)

## Summary

LatticeDB 是一款面向 AI 和 RAG 应用的嵌入式单文件知识图谱数据库，将图遍历、HNSW 向量搜索和 BM25 全文检索整合在同一个查询层中。它无需服务器配置，以零配置运行，支持本地优先架构，所有数据持久化于单个文件中。在 Apple M1 上测试显示，其节点查找延迟低至 0.13 微秒，百万级向量搜索仅需 0.83 毫秒且召回率达 100%。相比 SQLite 的递归 CTE，LatticeDB 在深度图遍历任务上性能提升可达数千倍，同时其全文搜索速度比 SQLite FTS5 快约 300 倍。无论是构建 Graph RAG、代理记忆还是本地知识库，LatticeDB 都为单机高关系负载提供了极致的性能与便捷性。

## Key quote

> LatticeDB 是一个嵌入式单文件图数据库，让本地应用能够通过关系、语义和文本查询同一份数据，并从同一个文件中消费持久的图和应用事件。

## HN discussion (48 comments)

### [k9294](<https://news.ycombinator.com/item?id=49440174>)

> 我是 SQLite 嵌入式特性的忠实拥趸，它支持以近乎零延迟的方式链式调用多个 SQL 语句。
>
> 目前我正在构建一个个人知识图谱服务器，混合了 Notion 基于 JSON Schema 的自定义实体以及 Obsidian 的 Markdown 和反向链接引用。运行效果不错，但我怀疑你们的产品可能更契合需求。
>
> 我有一个关于权限的问题：在图数据库中，你们推荐如何建模分层访问系统？具体来说，如果用户被授予某个文档的访问权，他们应该自动拥有该工作区内所有子文档的访问权。对于这种“子树”权限逻辑，是否有标准的建模方式，或者你们能建议一种更高效的方法？
>
> 对这款产品印象非常深刻，祝好运！

### [cjlm](<https://news.ycombinator.com/item?id=49440461>)

> 不错，我会把它添加到 gdb-engines.com。

### [itissid](<https://news.ycombinator.com/item?id=49439978>)

> 它是否有类似 litestream 的功能，用于特定生产场景的备份（即单台 Web 服务器即可，且几分钟的停机时间是可接受的）？

### [petervandijck](<https://news.ycombinator.com/item?id=49439520>)

> 恭喜，这真的很酷，我很喜欢这些示例。

### [tomComb](<https://news.ycombinator.com/item?id=49439305>)

> 我很好奇如何将 RDF 数据（如 Wikidata）映射到这里。我猜 RDF 谓词会变成你们节点 - 边风格图中的边。

---

## Cite

- Page: https://zeli.app/zh/story/49437049
- Date: 2026-08-25
- Source: github.com (https://github.com/jeffhajewski/latticedb)
- Hacker News: https://news.ycombinator.com/item?id=49437049

## Other languages

- en: https://zeli.app/story/49437049 · markdown: https://zeli.app/story/49437049.md
- ja: https://zeli.app/ja/story/49437049 · markdown: https://zeli.app/ja/story/49437049.md
- ko: https://zeli.app/ko/story/49437049 · markdown: https://zeli.app/ko/story/49437049.md
- de: https://zeli.app/de/story/49437049 · markdown: https://zeli.app/de/story/49437049.md
- es: https://zeli.app/es/story/49437049 · markdown: https://zeli.app/es/story/49437049.md
- ru: https://zeli.app/ru/story/49437049 · markdown: https://zeli.app/ru/story/49437049.md
