简体   繁体   English

创建一个noSql数据库,最好的源代码是什么?

[英]Creating a noSql database, what is the best source code to look at?

I have always wanted a nosql database that was purpose built for storing large volumes of nested/threaded comments. 我一直想要一个nosql数据库,该数据库专门用于存储大量的嵌套/线程注释。 Implementation would probably be done in java because that is what I am best at. 实现可能会在Java中完成,因为这是我最擅长的。 I really like how ElasticSearch is dead simple to set up a cluster and throw data into it, I want my product to share those same qualities. 我真的很喜欢ElasticSearch如何非常简单地设置集群并向其中添加数据,我希望我的产品具有相同的品质。 Here are the features I have in mind: 这是我要记住的功能:

1) auto/manual sharding across clusters 1)跨集群自动/手动分片
2) auto/manual indexing across clusters 2)跨集群自动/手动索引
3) full text search (probably via lucene or elasticSearch) 3)全文搜索(可能通过lucene或elasticSearch)
4) REST/JSON API 4)REST / JSON API
5) retrieve any comment by ID 5)通过ID检索任何评论
6) comments can be retrieved with or without child nodes 6)可以在有或没有子节点的情况下检索注释
7) comment trees can be retrieved with a specified depth 7)注释树可以指定深度检索
8) comment tree can be retrieved can be filtered by time or rank 8)可以检索注释树,可以按时间或等级过滤
9) entire comment trees can be re-parented. 9)整个注释树都可以重新父级化。

What I'm looking for are exceptional pieces of code or specific algorithms that I can study before digging into this project. 我正在寻找的是特殊的代码段或特定算法,可以在深入研究该项目之前进行研究。 Can anyone suggest a few places to get started? 谁能建议一些入门的地方?

Since your tag in a question indicates Java, I suggest looking into OrientDB. 由于问题中的标记表示Java,因此建议您查看OrientDB。

Here is a source code: 这是源代码:

http://code.google.com/p/orient/source/browse/ http://code.google.com/p/orient/source/browse/

and the architecture: 和架构:

http://code.google.com/p/orient/wiki/Presentations http://code.google.com/p/orient/wiki/演示

for the big boy stuff (clustering, hyper scaling take a look at HBase and Accumulo): 对于大男孩的东西(集群,超扩展,请看一下HBase和Accumulo):

http://hbase.apache.org/source-repository.html http://hbase.apache.org/source-repository.html

http://accumulo.apache.org/source.html http://accumulo.apache.org/source.html

Hope this helps. 希望这可以帮助。
Edmon 埃德蒙

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

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