简体   繁体   English

CouchDB论坛?

[英]CouchDB for a forum?

Will couchDB be better for storing the forum posts/topics then MySQL? 将couchDB更好地存储论坛帖子/主题然后MySQL? assuming there is proper caching (ie memcached being used). 假设有适当的缓存(即使用memcached)。

It seems at first glance that CouchDB is made for this, the whole document orientated design fits perfectly but I'm more concerned about performance. 乍一看,CouchDB就是为此而制作的,整个文档导向设计非常合适,但我更关注性能。

Any suggestions? 有什么建议?

CouchDB is fast . CouchDB 很快 It will meet your needs perfectly. 它将完美地满足您的需求。 It's good for a forum as each post and all related comments/posts in a thread will be self contained. 这对论坛很有用,因为每个帖子和一个帖子中的所有相关评论/帖子都是自包含的。 CouchDB maps are, as far as I've seen, faster than MySQL Joins when MySQL has a large dataset. 据我所见,当MySQL拥有大型数据集时,CouchDB映射比MySQL连接更快。

I would say go for it. 我会说去吧。

Edit: 编辑:

If you want an example of how CouchDB can be used in a decent way, check out skinnyboard . 如果你想要一个如何以合适的方式使用CouchDB的例子,请查看skinnyboard It's an agile planning tool and contains tasks on a story, and stories on a board, all with permissions in one CouchDB document. 它是一个灵活的规划工具,包含故事上的任务和董事会上的故事,所有这些都在一个CouchDB文档中具有权限。 The code is a little messy in some places, but it's a good example of data encapsulation using CouchDB. 代码在某些地方有点混乱,但它是使用CouchDB进行数据封装的一个很好的例子。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM