关系数据库的高效持久数据结构

发布于 2024-07-09 07:33:51 字数 211 浏览 8 评论 0原文

我正在寻找有关可用于实现关系模型的持久数据结构的材料。

不可变数据结构含义的持久性。

有人知道一些好的资源、书籍、论文等吗?

(我已经有书纯函数式数据结构,这是一本我正在寻找的一个很好的例子。)

I'm looking for material on persistent data structures that can be used to implement a relational model.

Persistence in the meaning of immutable data structures.

Anyone know of some good resources, books, papers and such?

(I already have the book Purely Functional Data Structures, which is a good example of what I'm looking for.)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

‘画卷フ 2024-07-16 07:33:51

将无处不在的 B-tree 修改为持久性是很简单的。 只要每当修改节点时总是分配一个新节点,并将新节点返回给递归调用者,递归调用者将通过分配新节点等将其插入到该级别。最终返回新的根节点。 每个操作分配的节点数不超过 O(log N)。

这是函数式语言中用于实现例如 2-3 棵树的技术。

It is straightforward to modify the ubiquitous B-tree to be persistent. Simply always alloctate a new node whenever a node is modified, and return the new node to the recursive caller, who will insert it at that level by allocating a new node, etc. Ultimate the new root node is returned. No more than O(log N) nodes are allocated per operation.

This is the technique used in functional languages to implement, e.g, 2-3 trees.

挽容 2024-07-16 07:33:51

我已经为 BergDB (http://bergdb.com/) 实现了这样的数据结构 - 一个具有数据模型的数据库这是一个持久的数据结构。

我建议阅读

http://www.cs.cmu.edu/~sleator /papers/Persistence.htm

这是关于如何基于普通(短暂)数据结构创建持久数据结构的原创作品。

I have implemented such a data structure for BergDB (http://bergdb.com/) - a database with a data model that is a persistent data structure.

I would suggest reading

http://www.cs.cmu.edu/~sleator/papers/Persistence.htm

It is the original work on how to create a persistant data structure based on an ordinary (ephemeral) one.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文