Couchbase Q&A

Have a Question? Get it answered by our community.
Looking for the old Couchbase Forum? Click here (read-only).
Sanjitha's picture
Asked 7 months 5 days ago
Latest activity 7 months 4 days ago

How to specify a startkey(where the key is compound) where one of the keys could take any value in couchbase

Compund key :

key:["page name","year","month","day","hour","minute"]

startkey: ["can take any value","2013","4","15","1","0"]

endkey : ["can take any value","2013","4","15","1","0"]

Group level:1

Could anyone tell how to specify the first key that could take...

Sanjitha's picture
Asked 7 months 5 days ago
Latest activity 7 months 2 days ago

How to write a query with a specific range and the group by clause.

I have an ecommerce site.
I basically have to get the list of pages along with its page view count over a specific period of time.

So i have to have a query with a GROUP BY of only the 'Page name' and specific date range.

Can someone please help

bagni's picture
Asked 7 months 5 days ago
Latest activity 7 months 3 days ago

Error code 5000 - solved

My fault, I've created the beer-sample with cbq-engine active.
It was enough stop and start the engine and now it works perfectly!

Hi,
I'm trying N1QL Developer Preview 1 over the 'beer-...

mxav@yahoo.com's picture
Asked 7 months 5 days ago
Latest activity 7 months 5 days ago

Error in the doc regarding max "XDCR Optimistic Replication Threshold" ?

Is this me or there could be an error in the documentation regarding the max size in Bytes the XDCR Optimistic Replication Threshold can be ?

The Doc states :

"XDCR Optimistic Replication Threshold. This will improve latency for XDCR.

This is document size in bytes. 0 to...

jpp's picture
Asked 7 months 6 days ago
Latest activity 7 months 5 days ago

Timeout errors in logs

We're seeing a bunch of errors like this in our logs - is there a timeout setting we should be adjusting?

Clients are using the php sdk or and some are using client side moxi - as best we can tell the errors correlate with failed connection attempts by clients. Everything is in the same...

gbuske's picture
Asked 7 months 6 days ago
Latest activity 7 months 5 days ago

couchbase session storage and growth of disk usage

Hi,

we are using couchbase enterprise (3 node cluster mode) edition and our databucket used for session storage growed to 30 GB (which is ridicously high - I would expect not more than 500 MB). This would fit nicely into the "append-only" bug described here:...

tbyrne's picture
Asked 7 months 6 days ago
Latest activity 7 months 4 days ago

Views include expired items, even when include_docs=true is specified

I'm querying a view using the parameters:

reduce=false&stale=false&include_docs=true

However, I still get expired items with the full document included.

This has been very simple to test, by creating a new item every second with a 10 second TTL. The list in the...

tbyrne's picture
Asked 7 months 6 days ago
Latest activity 6 months 3 weeks ago

Difficulty expiring documents quicker than once an hour.

I'm having difficulty setting exp_pager_stime. I've run the following command for each node in the cluster:

/opt/couchbase/bin/cbepctl <host:port> set flush_param exp_pager_stime 60

which returns:

setting param: exp_pager_stime 60
set exp_pager_stime to...

ksafonov's picture
Asked 7 months 6 days ago
Latest activity 6 months 4 weeks ago

Best practices to dump all keys without affecting the performance

Hi,

We're using Couchbase 1.8.1 cluster on four 32Gb nodes and we need to dump the keys from the bucket that has 180 million entries. The bucket is all the time under load (about 5000 get requests and about 100 put requests per second), most of the keys are in memory (cache miss is about...

jblayter's picture
Asked 7 months 6 days ago
Latest activity 7 months 6 days ago

HTTP error 401 Unauthorized getting pools

I am getting the following error when I try and start the cbq-engine against my 2.2 cb server. Is there anything I need to do to pass along a username and password?

ZEN0049p:n1ql john.blayter$ ./cbq-engine -couchbase http://127.0.0.1:8091/
08:42:...

Pages