couchdb

10个出色的NoSQL数据库

旧城冷巷雨未停 提交于 2020-01-24 07:45:39
10个出色的NoSQL数据库 NoSQL ,泛指非关系型的 数据库 。 虽然NoSQL流行语火起来才短短一年的时间,但是不可否认,现在已经开始了第二代运动。尽管早期的堆栈代码只能算是一种实验,然而现在的系统已经更加的成熟、稳定。不过现在也面临着一个严酷的事实:技术越来越成熟——以至于原来很好的NoSQL数据存储不得不进行重写,也有少数人认为这就是所谓的2.0版本。这里列出一些比较知名的工具,可以为大数据建立快速、可扩展的存储库。 1. Casssandra Cassandra 最初由Facebook开发,后来成了Apache开源项目,它是一个网络社交云计算方面理想的数据库。它集成了其他的流行工具如Solr,现在已经成为一个完全成熟的大型数据存储工具。Cassandra是一个混合型的非关系的数据库,类似于Google的BigTable。其主要功能比Dynomite(分布式的Key-Value存储系统)更丰富,但支持度却不如文档存储MongoDB。Cassandra的主要特点就是它不是一个数据库,而是由一堆数据库节点共同构成的一个分布式网络服务,对Cassandra的一个写操作,会被复制到其他节点上去,而对Cassandra的读操作,也会被路由到某个节点上面去读取。在最近的一次测试中, Netflix建立了一个288个节点的集群 。 2. Lucene/Solr Lucene

How to find by attribute starting with $

旧城冷巷雨未停 提交于 2020-01-24 00:36:10
问题 I try to query couchdb server with _find endpoint by attribute, starting with '$' ($ref in my case). But server always returns empty document set. I have couchdb documents like this: { "_id": "59bb208006149f50bb32f76f4900ccfa", "_rev": "1-99022821cc2bb3ab0bdd84ab98b55828", "contents": { "eClass": "auth#//User", "name": "SuperAdminUser", "roles": [ { "eClass": "auth#//Role", "$ref": "59bb208006149f50bb32f76f4900c962?rev=1-24d9469afe50f162e473b09fdbd95154#/" } ], "email": "admin@mydomain.ru", }

10个出色的NoSQL数据库

余生颓废 提交于 2020-01-23 00:37:40
虽然NoSQL流行语火起来才短短一年的时间,但是不可否认,现在已经开始了第二代运动。尽管早期的堆栈代码只能算是一种实验,然而现在的系统已经更加的成熟、稳定。不过现在也面临着一个严酷的事实:技术越来越成熟——以至于原来很好的NoSQL数据存储不得不进行重写,也有少数人认为这就是所谓的2.0版本。这里列出一些比较知名的工具,可以为大数据建立快速、可扩展的存储库。 1. Casssandra Cassandra 最初由Facebook开发,后来成了Apache开源项目,它是一个网络社交云计算方面理想的数据库。它集成了其他的流行工具如Solr,现在已经成为一个完全成熟的大型数据存储工具。Cassandra是一个混合型的非关系的数据库,类似于Google的BigTable。其主要功能比Dynomite(分布式的Key-Value存储系统)更丰富,但支持度却不如文档存储MongoDB。Cassandra的主要特点就是它不是一个数据库,而是由一堆数据库节点共同构成的一个分布式网络服务,对Cassandra的一个写操作,会被复制到其他节点上去,而对Cassandra的读操作,也会被路由到某个节点上面去读取。在最近的一次测试中, Netflix建立了一个288个节点的集群 。 2. Lucene/Solr Lucene 是Apache软件基金会4 jakarta项目组的一个子项目

CouchBase 1.8 and 2.0 Erlang SDKs? Why is Erlang Left out

戏子无情 提交于 2020-01-21 04:48:05
问题 I really enjoy seeing the great work being done by CouchBase team on providing us with a great NoSQL solution. However, despite the fact that there are few erlang Web developers compared to perhaps ruby, PHP, java or Python, the number of developers picking up erlang are increasing. Which brings me to why on their SDK page, they have constantly left out Erlang. With yaws web Server, Mochiweb, and many other Erlang Web libraries, why in the world would they not support Erlang in their NoSQL

15个nosql数据库

喜欢而已 提交于 2020-01-20 00:39:16
1、MongoDB 介绍 MongoDB是一个基于分布式文件存储的数据库。由C++语言编写。主要解决的是海量数据的访问效率问题,为WEB应用提供可扩展的高性能数据存储解决方案。当数据量达到50GB以上的时候,MongoDB的数据库访问速度是MySQL的10倍以上。MongoDB的并发读写效率不是特别出色,根据官方提供的性能测试表明,大约每秒可以处理0.5万~1.5万次读写请求。MongoDB还自带了一个出色的分布式文件系统GridFS,可以支持海量的数据存储。 MongoDB也有一个Ruby的项目MongoMapper,是模仿Merb的DataMapper编写的MongoDB接口,使用起来非常简单,几乎和DataMapper一模一样,功能非常强大。 MongoDB是一个介于关系数据库和非关系数据库之间的产品,是非关系数据库当中功能最丰富,最像关系数据库的。他支持的数据结构非常松散,是类似json的bjson格式,因此可以存储比较复杂的数据类型。Mongo最大的特点是他支持的查询语言非常强大,其语法有点类似于面向对象的查询语言,几乎可以实现类似关系数据库单表查询的绝大部分功能,而且还支持对数据建立索引。 所谓“面向集合”(Collenction-Orented),意思是数据被分组存储在数据集中,被称为一个集合(Collenction)。每个 集合在数据库中都有一个唯一的标识名

How to query PouchDB with SQL-like operators

爱⌒轻易说出口 提交于 2020-01-16 03:20:07
问题 Being relatively new to PouchDB/CouchDB, I'm still trying to wrap my head around how to use the map/reduce correctly in different cases. Supposed that I have document structure like this: { _id: 'record/1', labels: { // many-to-many relationship 'label/1': true, // let's assume that this is 'Label A' 'label/3': true, // 'Label C' 'label/4': true // 'Label D' } }, { _id: 'record/2', labels: { 'label/1': true, // 'Label A' 'label/2': true // 'Label B' } } What are the correct ways to define

Can' get couchdb external http handlers to work

牧云@^-^@ 提交于 2020-01-16 02:03:20
问题 following the instructions here http://wiki.apache.org/couchdb/ExternalProcesses this is what I get { * error: "{{badarg,[{erlang,port_command, [#Port<0.2056>, [123, [34,<<"info">>,34], 58, [123, [34,"db_name",34], 58, [34,<<"transfer_central">>,34], 44, [34,"doc_count",34], 58,"39441",44, [34,"doc_del_count",34], 58,"0",44, [34,"update_seq",34], 58,"56508",44, [34,"purge_seq",34], 58,"0",44, [34,"compact_running",34], 58,<<"false">>,44, [34,"disk_size",34], 58,"43593828",44, [34,"instance

Architecting webserver (NginX/Lighttpd/Apache) with couchbase

浪子不回头ぞ 提交于 2020-01-14 05:30:17
问题 I have this architectural question that I'm hoping some of you can share with me. In your past experience, which scenario works better for high load application/dbase server. I'm using Couchbase as a dbase and one of the Web server (NginX/Lighttpd/Apache). This is going to be hard to explain in text so I hope I make some sense. Which scenario is preferred? Scenario 1. Client connect to webserver master cluster which select the proper available webserver (machine 2) and the (webserver machine

how to disable / turn-off / refresh couchdb caching

冷暖自知 提交于 2020-01-13 19:18:30
问题 I have a list that has some basic authentication on a document. The issue I am having is that the list is caching so the user will not see they have access unless I update the revision id. How do you show a non-cached list? if (req.userCtx.name === doc.permissions.owner) { return 'you have permission'; } else { return 'you do not'; } How I would imagine it done is by passing no-cache or update the ETAG or something of that sort in the header, but nothing seems to work. Here is an attempt I

CouchDB - filter latest log per logged instance from a list

有些话、适合烂在心里 提交于 2020-01-13 17:06:15
问题 I could use some help filtering distinct values from a couchdb view. I have a database that stores logs with information about computers. Periodically new logs for a computer are written to the db. A bit simplified i store entries like these: { "name": "NAS", "os": "Linux", "timestamp": "2011-03-03T16:26:39Z", } { "name": "Server1", "os": "Windows", "timestamp": "2011-02-03T19:31:31Z", } { "name": "NAS", "os": "Linux", "timestamp": "2011-02-03T18:21:29Z", } So far i am struggling to filter