Couchbase Q&A

Have a Question? Get it answered by our community

witbrock's picture
Asked 3 weeks 3 days ago
Latest activity 3 weeks 3 days ago

Maven Dependency with Netbeans 8 doesn't construct correct run classpath

I'm trying the HelloWorld file, and it fails to run
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/jettison/json/JSONException

Looking at the IDE's classpath for the HelloWorld class and comparing it with the explicit path in the tutorial, I...

cjjohansen's picture
Asked 3 weeks 4 days ago

Getting Single document by Unique value


Whats the best approach for querying a single entity by a unique value which is not the Key?

var view = client.GetView("useraccount", "by_email").StartKey(theEmail).EndKey(theEmail).Limit(1
cjjohansen's picture
Asked 3 weeks 4 days ago
Latest activity 3 weeks 3 days ago

.NET SDK 1.3 Extensions is it possible to configure JSON Serializer


the MVC Tutorial suggests using the client.GetJson and client.StoreJson extension methods.

I Need to serialize POCO's with protected setters in order to maintain incapsulation.
I Have written a ContractResolver based on CamelCasePropertyNamesContractResolver. Which does...

danomano's picture
Asked 3 weeks 4 days ago
Latest activity 3 weeks 3 days ago

couchbase reads? (from master vs server)

Lets say we have 1 cluster with 4 nodes, 2 nodes in US, and 2 nodes in the Europe.

we have replication for the bucket set to 2 (so this means 3 nodes will have the same document, after replication).

My question is..

When a read request comes into the cluster, will it:

jatin's picture
Asked 3 weeks 5 days ago

Why Couchbase Erlang Service In 32 bit ?


we are using couchbase server 2.2 with windows 2012 OS - 64 bit.
I can see now that memcache process (memcached.exe) is running under 64 bit installation but Erlang process (erl.exe) is running 32 bit and i am not getting why it is running under 32 bit.

Would it not...

mark.ward's picture
Asked 3 weeks 5 days ago
Latest activity 3 weeks 5 days ago

N1QL and Python SDK

Is there a plan and timeframe for integrating N1QL within the Python SDK? I'm new to Couchbase and evaluating it as the backend for Celery task results. While it's be extremely easy to setup and use for this purpose, I'm encountering some friction and drag now that we're needing to extract and...

yli119's picture
Asked 3 weeks 5 days ago
Latest activity 3 weeks 5 days ago

Client discounts under "Idle", never able to reconnect

We found a bug in the library when the client discounts under "idle" for more than half an hour, and it’s easy to reproduce:

  • Create a client for the couchbase client library (version, used to read document only, let’s called it ROC, read only client;
  • Insert a
  • ...
ReplicaDawn's picture
Asked 3 weeks 6 days ago

3 Node cluster reporting extra nodes to clients

Just wondering if others have seen this before. I have a number of 3 node clusters in test/dev environments which have undergone a lot of configuration changes over the last month.
The issue I now see is that some of these clusters are now reporting extra server nodes to the clients. The...

knedle's picture
Asked 3 weeks 6 days ago
Latest activity 3 weeks 13 hours ago

getQueryById Android

Based on ToDoLite Android sample app I am trying to get query by ID working in my app.

Note that document is created with the same id as the content:
Document document = database.getDocument(userId);


ANdrei Nechifor's picture
Asked 4 weeks 2 hours ago
Latest activity 3 weeks 4 days ago

How can I guarantee that a view returns the last inserted value also

1. Write a key/value using ExecuteStore command
2. I immediately try to get the last inserted value like this:
var view = _instance.GetView("all_docs", "all_docs");
view = view.Stale(StaleMode.False);
var documents = view.Select(GenerateCacheData);