couchbase

Membase can someone explain the idea behind their technology

我只是一个虾纸丫 提交于 2020-01-01 05:03:07
问题 It is fourth day already since I've started diving into CouchDB specifically Membase (Couchbase), Membase seems really interesting technology for me due to simplicity of administration, their interface is as magical as informal and simple. The way you add/remove buckets is just fun. Unfortunately I didn't managed to launch their .NET client on Mac OS X (on Windows it worked fine) and also couldn't find out the way to perform Map/Reduce queries so it seemed that Membase Server technology is

want to sum inner element with JSON in using N1QLCouchbase

我是研究僧i 提交于 2019-12-31 05:36:54
问题 when I run below query SELECT * FROM myBucket WHERE ANY x IN transactions SATISFIES x.type in [0,4] END; Result: { "_type": "Company", "created": "2015-12-01T18:30:00.000Z", "transactions": [ { "amount": "96.5", "date": "2016-01-03T18:30:00.000Z", "type": 0 }, { "amount": "483.7", "date": "2016-01-10T18:30:00.000Z", "type": 0 } ] } I get multiple json like this SELECT sum(transactions[*].amount) FROM Inheritx WHERE ANY x IN transactions SATISFIES x.type in [0,4] END; Result: [ { "$1": null }

How to retrieve a list of keys/documents in couchbase database in C#

自闭症网瘾萝莉.ら 提交于 2019-12-30 03:34:08
问题 I'm totally new to couchbase. This is the sample code I use for insert and get documents: using (var bucket = Cluster.OpenBucket()) { var document = new Document<dynamic> { Id = "Hello", Content = new { name = "Couchbase" } }; var upsert = bucket.Upsert(document); if (upsert.Success) { var get = bucket.GetDocument<dynamic>(document.Id); document = get.Document; var msg = string.Format("{0} {1}!", document.Id, document.Content.name); Console.WriteLine(msg); } Console.Read(); } But I have no

Is it possible to copy couchdb directly to sdcard on android devices?

妖精的绣舞 提交于 2019-12-25 05:37:35
问题 I see that the couchdbs are stored in the /sdcard/Android/data/my.app.package/db/ as .couch files. I was trying to copy the couchdb directly to sdcard and make the couchdb service recognize it. We have a large amount of data in the cloud stored in couchdb and replicating it everytime during testing takes a lot of time and being able to copy it directly will hasten the development process. Is it possible to do this? if yes, how and is there any special care needed to make the android couchbase

Couchbase .Net Library complex startKey/endKey types

末鹿安然 提交于 2019-12-25 05:14:12
问题 I need to convert those params from REST-API query to C# LINQ. ?descending=true&endkey=[35,37]&startkey=[35,37,{}] In LINQ this query look like this: c.GetView("MyView", "SubView").StartKey(startKey).EndKey(endKey).Descending(true); What type should be variables startKey and endKey? I've tried string, but in this case .Net library produces query with invalid params: ?descending=true&endkey="[35,37]"&startkey="[35,37,{}]" 回答1: I've done some research and found the answer. Acording to https:/

N1QL and Node on Couchbase

牧云@^-^@ 提交于 2019-12-25 03:19:22
问题 I am trying to use N1QL with Node.js SDK of Couchbase. Here is my code: var config = require('../../config/init'); var N1qlQuery = require('couchbase').N1qlQuery; var query = N1qlQuery.fromString("SELECT * FROM users"); var db = couchbaseService(); console.log('start'); db.query(query, function(err, result) { if (err) { console.log('inside err'); console.log(err); return; } console.log('No error in NIQL'); console.log(result.object); }); Here is the error: TypeError: Cannot read property

Multiple instances on a single machine on Couchbase 2.2 community

可紊 提交于 2019-12-25 03:01:03
问题 We are trying to setup multiple instances on a single machine for our development environment using Couchbase 2.2 community edition. We see that there is documentation for such a set up using enterprise 2.5 edition here http://docs.couchbase.com/couchbase-manual-2.5/cb-install/#installing-multiple-instances-on-a-machine. We tried to see the difference between both the versions and there doesn't seem to be a change in the static_config files nor the coucbase-server bin script. So is it safe to

GeoCouch query badmatch error

半腔热情 提交于 2019-12-25 02:14:27
问题 After installing Couchbase Single Server Community Edition fonr Windows, and following the instructions for "Using Geocouch" i've found in the readme from couchbase/geocouch Github, I only get the error: {"error":"{{badmatch,{ok,11780}},\n [{vtree_bulk,omt_write_tree,4},\n {vtree_bulk,omt_write_tree,2},\n {vtree_bulk,bulk_load,4},\n {vtree,add_remove,5},\n {couch_spatial_updater,'-write_changes/4-fun-2-',5},\n {lists,zipwith,3},\n {couch_spatial_updater,write_changes,4},\n {couch_spatial

Client timeout on AWS Couchbase cluster after upgrading to Ruby 1.9.3

杀马特。学长 韩版系。学妹 提交于 2019-12-24 20:49:57
问题 After we upgrade to Rails 3.2.8 with Ruby 1.9.3 (from 1.8.7), our Couchbase client could no longer access our AWS cluster (Couchbase 1.8 Community Edition). 1.9.3p194 :011 > c = Couchbase.new("http://ec2-184-169-237-63.us-west-1.compute.amazonaws.com:8091") => #<Couchbase::Bucket:0x007fe12d9e6c98 "http://ec2-184-169-237-63.us-west-1.compute.amazonaws.com:8091/pools/default/buckets/default/" default_format=:document, default_flags=0x0, quiet=false, connected=true, timeout=2500000> 1.9.3p194