Couchbase Q&A

Have a Question? Get it answered by our community

mlipovits's picture
Asked 2 days 11 hours ago
Latest activity 19 hours 15 min ago

Issues returning unique values

We are having some performance issues with our ongoing project because we get back lots of values from our views and cannot group them because we don't use any reduce function.
Here, we want all gpi - values which share the came cell_id back. problem here is that lots of document share the same gpi and the same cell_id. The group function is no option since we found no reduce to perform here. Since we get back so many duplicate values we have to put in a set in python so they are unique we lose a lot of performance due to iterating through all values couichbase returns.

An example doc and view are in the full description.
Does anyone have any idea how we could solve this problem?

adonoho's picture
Asked 2 days 14 hours ago
Latest activity 15 hours 12 min ago

OS X Homebrew script for C-SDK points at a downlevel version ...


The Homebrew script for the C SDK on OS X still points at libcouchbase-2.2.0.

astraeus:~ awd$ brew install
sunku's picture
Asked 2 days 17 hours ago
Latest activity 2 days 15 hours ago

Creating a view


I'm very new to Couchbase, and testing some queries on it these days.

In Couchbase, it seems that we should pre-define 'view' before I execute query. So, every sample article explains how to define views for each condition such as 'by_country", "by_lanuage", and "by_age"....

lenniedg2000's picture
Asked 3 days 4 min ago
Latest activity 1 day 21 hours ago

Secure Sync Gateway Admin Interface


So one can secure the Sync REST APIs but how do I secure the Admin REST APIs?
Sync REST APIs are managed by the client where clients have logins but the Admin REST API must also be protected.

Thank you!

lenniedg2000's picture
Asked 3 days 9 hours ago
Latest activity 12 hours 53 min ago

Couchbase Lite iOS Filter


I have some documents in my local Couchbase database that each have a channel set like "25".
On iOS in Objective C I then try to have a filter to ONLY pull the data for that channel down... My goal is to assign a channel ID to each user that signup in the application so that i...

khwong9981's picture
Asked 5 days 4 hours ago
Latest activity 4 days 20 hours ago

Heartbeat exception

Can I know what are potential causes of below exception? Why is heartbeat using in couchbase?

HB: Node 'http://xxxxxx:8091/pools' is not available.
System.Net.WebException: The request was aborted: The request was canceled.

at System...

Emilio G.'s picture
Asked 5 days 8 hours ago
Latest activity 4 days 7 hours ago

N1QL Golang

It is possible use N1QL with the Golang SDK?

P.D.: out of curiosity, when will release final version?



xiaoliang's picture
Asked 6 days 1 hour ago
Latest activity 4 days 20 hours ago

How to keep datas after uninstallation

Fow example

I installed couchbase by rpm,version is 2.2.0

create Bucket and save datas to this bucket

after that,I want to uninstall it and install 2.2.1 or 2.1.0

after installation,will data be still there?

javadevmtl's picture
Asked 6 days 11 hours ago
Latest activity 1 day 21 hours ago

How to count uniques with view?

So say I have the following documents

{"acct":"123456","name":"John Smith"}
{"acct":"123456","name":"John Smith"}
{"acct":"123457","name":"Jane Doe"}

function(doc) {
emit (doc.acct, 1)


This view will return 3...

polfer's picture
Asked 6 days 13 hours ago
Latest activity 4 days 20 hours ago

View Query with Keys Not Fully Reduced

Accessing a view through the Ruby client, but this issue does show up through the console. The query is against a two node deployment using 2.2.0 enterprise, build 821.

When I query requesting grouping and *no* keys parameter, I receive a fully reduced set of results. For example, a...