couchbase

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

我的梦境 提交于 2019-11-30 20:54:30
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 realm. Its quite disturbing to discover that they use it in building their DBMS yet they do not

Couchbase: Cannot perform operations on a shutdown bucket

柔情痞子 提交于 2019-11-30 19:12:22
问题 I am getting this error when try to insert 2M objects via node.js into Couchbase. 1M works fine. C:\Users\Administrator\Desktop\node_modules\couchbase\lib\bucket.js: 728 throw new Error('cannot perform operations on a shutdown bucket'); I am using Couchbase 3.0.1, node.js 2.0.2 SDK. This is the code: var Couchbase = require('couchbase'); var myCluster = new Couchbase.Cluster('couchbase://10.0.0.103,10.0.0.102,10.0.0.101,'); var myBucket = myCluster.openBucket('rre'); for (var i = 0;i<1000000

What is a couchbase pool

坚强是说给别人听的谎言 提交于 2019-11-30 18:57:51
In couch base URL, e.g. server:port/pools/default what exactly a couch base pool is. Will it always be default or we can change it. There is some text written there http://www.couchbase.com/docs/couchbase-manual-1.8/couchbase-admin-restapi-key-concepts-resources.html but I cannot really get it 100%. Please anyone can explain. A long time ago the Couchbase engineers intended to build out a concept of having pools similar to zfs pools, but for a distributed database. The feature isn't dead, but just never got much attention compared to other database features that needed to be added. What ended

How to set TTL for a specific Couchbase document using spring-data-couchbase?

荒凉一梦 提交于 2019-11-30 18:24:58
问题 How to set TTL (Time to Live) for a specific couchbase document using spring-data-couchbase? I know there is way to set expiry time using Document notation as follows @Document(expiry = 10) http://docs.spring.io/spring-data/couchbase/docs/1.1.1.RELEASE/reference/html/couchbase.entity.html It will set TTL for all the documents save through the Entity class. But it seems there is way to set expiration(TTL) time for a specific document "Get and touch: Fetch a specified document and update the

n1ql query to update multiple parameters in array of json data

我只是一个虾纸丫 提交于 2019-11-30 16:48:19
Following is the sample document ( userdetails) in couchbase. { "friends": [ { "company": "microsoft", "firstname": "criss", "lastname": "angel" }, { "company": "google", "firstname": "captain", "lastname": "america" } ]} based on the "company", i want to change the "firstname" and "lastname" N1ql query ( to update single parameter (firstname) ) update default use keys "userdetails" set a.firstname="xyz" for a in friends when a.company="microsoft" end returning friends Above query works perfectly. but Im struggling in writting query for updating two parameters ( firstname,lastname) N1ql query

How to use spring data with couchbase without _class attribute

南楼画角 提交于 2019-11-30 15:23:07
Is there a simple way to use spring data couchbase with documents that do not have _class attribute? In the couchbase I have something like this in my sampledata bucket: { "username" : "alice", "created" : 1473292800000, "data" : { "a": 1, "b" : "2"}, "type" : "mydata" } Now, is there any way to define mapping from this structure of document to Java object (note that _class attribute is missing and cannot be added) and vice versa so that I get all (or most) automagical features from spring couchbase data? Something like: If type field has value "mydata" use class MyData.java. So when find is

Couchbase-lite and CouchDB

假装没事ソ 提交于 2019-11-30 11:45:44
I'm unclear about the requirements for using Couchbase-lite. Is it possible to use Couchbase-lite with CouchDB? Or does Couchbase-lite require Couchbase Server and Sync Gateway? Thanks! According to the documents it is 100% compatible with both CouchDB and Couchbase. http://docs.couchbase.com/couchbase-lite/cbl-concepts/#can-couchbase-lite-replicate-with-apache-couchdb-servers Also I found this blog post on syncing IOS with CouchDB, might be useful! http://blog.lunarlogic.io/2013/synchronization-using-couchdb/ Edit Official Couchbase link above isn't valid anymore however the following

n1ql query to update multiple parameters in array of json data

一曲冷凌霜 提交于 2019-11-29 23:20:32
问题 Following is the sample document ( userdetails) in couchbase. { "friends": [ { "company": "microsoft", "firstname": "criss", "lastname": "angel" }, { "company": "google", "firstname": "captain", "lastname": "america" } ]} based on the "company", i want to change the "firstname" and "lastname" N1ql query ( to update single parameter (firstname) ) update default use keys "userdetails" set a.firstname="xyz" for a in friends when a.company="microsoft" end returning friends Above query works

Couchbase 2.2.0 document size editing limit

▼魔方 西西 提交于 2019-11-29 22:16:33
I tried to edit document via couchbase console, and caught this warning message: Warning: Editing of document with size more than 2.5kb is not allowed How can I increase max editing document size? Stavros Aloizos You can raise the limit or disable completely on version 2.2: To raise the limit ; edit file: /opt/couchbase/lib/ns_server/erlang/lib/ns_server/priv/public/js/documents.js at line 214: var DocumentsSection = { docsLimit: 1000, docBytesLimit: 2500, init: function () { var self = this; Edit the docBytesLimit variable set to 2500 and increase it to your preferred value. To disable

Couchbase-lite and CouchDB

不羁的心 提交于 2019-11-29 17:10:45
问题 I'm unclear about the requirements for using Couchbase-lite. Is it possible to use Couchbase-lite with CouchDB? Or does Couchbase-lite require Couchbase Server and Sync Gateway? Thanks! 回答1: According to the documents it is 100% compatible with both CouchDB and Couchbase. http://docs.couchbase.com/couchbase-lite/cbl-concepts/#can-couchbase-lite-replicate-with-apache-couchdb-servers Also I found this blog post on syncing IOS with CouchDB, might be useful! http://blog.lunarlogic.io/2013