Couchbase Q&A

Have a Question? Get it answered by our community.
Looking for the old Couchbase Forum? Click here (read-only).
ahurt's picture
Asked 1 week 1 day ago
Latest activity 6 days 21 hours ago

Better way to split a string?

I have a document element that looks like this ...

"ip": "123.12.11.4"

I need to be able to get each 'octet' out of that value (split it on the '.') I can get the first portion with a case statement:

case
when
substr(ws.ip, 1, 1) == '.'
...

bmhardy's picture
Asked 1 week 1 day ago
Latest activity 1 week 20 hours ago

Trouble with authorization in sync function

I'm having some trouble adding some authorization into our couchbase mobile app. Can you offer any help or insight?

I'm running this on an amazon ec2 instance so the couchbase version may be a little older than current.

I'm using persona to authenticate. I successfully...

buger's picture
Asked 1 week 1 day ago
Latest activity 6 days 16 hours ago

Error after updating libcouchbase from 2.2 to 2.3

After updating design_docs query shows error:

Couchbase.connect("http://localhost:8091/").design_docs
Couchbase::Error::Invalid: failed to schedule document request (key="/pools/default/buckets/
...
simonh10's picture
Asked 1 week 2 days ago
Latest activity 1 week 1 day ago

Pure Python API

Hi,
I know there has been some very brief discussion of a pure python couchbase API, but did anything actually happen with it?
A reliance on a C library makes deploying on a heterogeneous environment practically impossible.
Mixed environment of clients (Mac, Linux, Windows)....

igor_astds's picture
Asked 1 week 3 days ago
Latest activity 1 week 2 days ago

Issues with bench/ performance: cbc-pillowfight produces 1000x slower peaks at certain amount of writes

Hi all.
I'm having a very uneven distribution of 100usec and 1msec query time for following test command:
cbs-pillowfight -h localhost -b default -i 1 -I 10000
It's a two-node cluster running on i7-2600'...

yunjiha's picture
Asked 1 week 3 days ago

trouble import hadoop connector to work

I am trying to dump couchbase to hadoop using the sqoop plugin, and I am stuck with an error that says "Max block location exceeded for split".

hadoop 2.2.0
sqoop-1.4.4
jdk1.7.0_17
couchbase 2.2

Here is the full output:
14/04/14 14:52:59 INFO tool....

AnupVeerapur's picture
Asked 1 week 3 days ago
Latest activity 3 days 5 hours ago

Phonegap TodoLite Project creation error.

Hi, I am trying to create the TodoLite example project. I am always getting the error "Couchbase Lite not installed" and the porject does not seem to work later.

Please suggest what would have gone wrong.
I have followed all the steps as per the "...

mlipovits's picture
Asked 1 week 3 days ago
Latest activity 1 week 1 day 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 1 week 3 days ago
Latest activity 1 week 1 day ago

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

Gentlefolk,

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

astraeus:~ awd$ brew install https://github.com/couchbase/homebrew/raw/stable/Library/Formula/
...
sunku's picture
Asked 1 week 3 days ago
Latest activity 1 week 3 days ago

Creating a view

Hello,

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"....

Pages