couchbase

Use Couchbase hosted in Amazon from a client hosted in Azure, what can cause bad performance?

时光毁灭记忆、已成空白 提交于 2019-12-14 03:53:58
问题 I'm trying to use a Couchbase cluster hosted in Amazon EC2 . The client I'm trying to use it from is hosted in Microsoft Azure . The performance is terrible, in ~10% of the time opening a bucket takes a lot of time. This is my configuration: <couchbaseClients> <couchbase useSsl="false" operationLifespan="1000"> <servers> <!-- Ip addresses obscured... --> <add uri="http://1.1.1.1:8091/pools"></add> <add uri="http://1.1.1.2:8091/pools"></add> </servers> <buckets> <add name="default" useSsl=

Couchbase,Where to add config.json for windows Installation?

这一生的挚爱 提交于 2019-12-14 03:20:28
问题 I am trying to implement Couch base in my android app following the couchbase tutorial link here I need to add a config.json file to create my own database link rather than using its default database "Sync_gateway".According to explanation it should be inside bin directory inside a data folder but I can't find a bin directory as I installed sync gatway from .exe file. I don't find run it by any command other than clicking the .exe file. What I am I missing? 回答1: If you have installed sync

Access Couchbase on Azure Windows 2012 VM from .net

不羁岁月 提交于 2019-12-13 18:41:43
问题 I'm trying to get a new instance of Couchbase set up on Azure, and having trouble connecting from the .net SDK. For setup, I have followed steps here: http://blog.couchbase.com/step-step-production-deployment-couchbase-windows-azure-virtual-machines (took several attempts to get this up and running on an azure virtual network) Have installed Version: 2.5.1 enterprise edition (build-1083) on windows Server 2012 R2. I'm running only one VM to begin with. Medium sized, serving nothing but

Recover Couchbase password without knowing it

匆匆过客 提交于 2019-12-13 16:29:18
问题 I'm working on a mac , downloaded the community edition for mac. Launched the app, and opened the admin console. So far so good, untill I logged out. Now I can't log in again since I've never had to set the password in the first place. It might have been set on a previous version a whole while back, but I'm not sure. Reinstalling it doesn't work. I keep getting bounced back to the login screen. Executing the following command as suggested in other posts and help online results in a crash of

Couchbase - getting “view_undefined” after accessing a newly created Production View

a 夏天 提交于 2019-12-13 16:20:00
问题 I'm creating a Production View in Couchbase using HttpFuture<Boolean> asyncResult = client.asyncCreateDesignDoc(designDocProd); Boolean success = asyncResult.get(); (Omitting the "dev_" prefix from the Design Doc's name creates it as Production View instead of Dev View) After checking that success indeed equals true, I try to access the view using couchbaseClient.query(view, query) , but then I get the following Error: SERVER: unknown_error Reason: view_undefined (Below is the Full Stack

Query sync gateway buckets using N1QL

左心房为你撑大大i 提交于 2019-12-13 13:15:22
问题 I wanted to know if it's possible to query the sync gateway buckets using N1QL? Does it behave as a normal couchbase bucket or because of the metadata that sync gateway adds, is it possible to query it only through Rest APIs? Currently I have a webhooks handler, which keeps a replica of the documents residing under sync gateway buckets. I need to do some aggrgations which need to be pushed back to clients. So, can I do all this heavy lifting directly trhough n1ql on sync gateway or using

Spring Data Couchbase (2.x) Document Relation

不问归期 提交于 2019-12-13 07:29:07
问题 I want to ask about spring data couchbase 2.x Can I refer a document in spring data couchbase like @DbRef annotation in spring data mongodb? 回答1: we implemented our persistence with mongo initially and are in the mode of switching to couchbase. Doing so, we're finding that referencing is highly relying on DBRef from mongo to perform relationships. This should be abstracted away and implemented outside of the underlying implementation. Same goes for searching, indexing, and the like. https:/

Couchbase: is it better to retrieve a list object or each object individually?

余生颓废 提交于 2019-12-13 05:13:47
问题 I'm currently using couchbase for quick and distributed access of data. I have Community objects being stored by the keys "comm-{index}" where {index} is the key index for a given community object (i.e. comm-1 stores object 1, comm-2 stores object 2 a so on). I need to retrieve a list containing all of the Community objects, and I wonder: would it be better (faster) to do a GET of every object one by one and add it to a list, or otherwise, storing a List object identified by a key, and

Heroku NodeJS + CouchBase Custom Buildpack

风流意气都作罢 提交于 2019-12-13 04:59:47
问题 I'm trying to put together a custom buildpack with NodeJS and the CouchBase module/libraries I've gotten as far as using Vulcan to build libcouchbase and libvbucket and getting the buildpack to retrieve and unpack the tgz files for both. Everything looks ok there, but I receive errors when npm tries to install the couchbase module: I get a bunch of errors, but this line: "../src/couchbase_impl.h:52:36: warning: libcouchbase/couchbase.h: No such file or directory" leads me to think that it can

How to get latest document from specific date?

坚强是说给别人听的谎言 提交于 2019-12-13 03:39:45
问题 I'm trying to get the latest document from specified date (variable) in Couchbase and N1QL on a very large database (150 millions documents each month). The latest document from a date could be any time (previous second or last month). Note, the date is in Unix Epoch. Here is a structure of the documents: { "type" : "person", "id":"001", "name":"John Doe", "date":"1491199810.435" } I have index on date: CREATE INDEX `date` ON `mytable`(`date`) WITH { "defer_build"=true } Usually in Postgres