CouchDB中的树 [英] Trees in CouchDB

查看:65
本文介绍了CouchDB中的树的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是CouchDB的新手,并且有一个问题。

I'm new to CouchDB and have a question.

我要保存带有父邮件ID作为属性的邮件。
消息也可以具有childMessage作为父项,因此它看起来像一棵树。

I'm saving messages with the ID of the parent message as an attribute. A message can also have a childMessage as parent, so it looks like a tree.

我如何查询所有子项,包括子项的子项?

How can i query all childs including the childs of the childs?

谢谢

推荐答案

这是处理问题时常用的方法分层数据: http://probablyprogramming.com/2008/07 / 04 / storing-hierarchical-data-in-couchdb /

This is the commonly used method when dealing with hierarchical data: http://probablyprogramming.com/2008/07/04/storing-hierarchical-data-in-couchdb/

这篇关于CouchDB中的树的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆