Couchbase Questions: Python SDK

Have a Question? Get it answered by our community

gzz's picture
Asked 1 month 2 weeks ago
Latest activity 1 month 5 days ago

Getting TxAsyncConnection to work

Hi all,

I'm currently writing a ms sql to couchbase bulk transfer module. For speed I want to use TxAsync, but somehow it seems I'm missing something :) It never transfers data, but the error callback is always triggered with "Operation timed out". What am I doing wrong?


matteo.giacomazzi's picture
Asked 2 months 1 week ago
Latest activity 2 months 1 week ago

Couchbase Python SDK in Ubuntu 14.04

Is there any known way to install Python SDK on Ubuntu 14.04?
Actually, trying to follow instructions for 12.04 - which is currently two years old - without any luck.

Thank you!

simonh10's picture
Asked 2 months 3 weeks ago
Latest activity 2 months 3 weeks ago

Pure Python API

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

stclaird's picture
Asked 3 months 1 week ago
Latest activity 3 months 14 hours ago

Simple Search Question


I am in the process of getting to grips with couchbase and python but I have hit a question that I would like some help with:

I want to check for the existance of a document element/value in couchbase before I decide to add a new document.

So for example in my case I...

arachide99's picture
Asked 4 months 1 week ago
Latest activity 4 months 1 week ago

Can app on GAE(google app engine) access Couchbase server host on VPS/dedicated server?


tkouts's picture
Asked 4 months 1 week ago
Latest activity 3 months 4 weeks ago

Timeouts on a couchbase cluster using gevent on simple get calls

I'm using the latest python SDK (1.2) with gevent and I'm getting timeout errors on simple get operations. The cluster has 3 couchbase nodes hosted on Amazon and the client runs locally on one of them. When the client is restarted the errors no longer appear.
The exception I get is:...

youknowho's picture
Asked 5 months 2 weeks ago
Latest activity 5 months 1 week ago

Timeouts on certain document queries

I have a "flagged" view that emits documents with a "f" property equal to 1. I'm simply using get_multi and set_multi to process 500 documents at a time from this view (code sets the "f" property to 0, adds the document to a dict, calls set_multi with this dict when all documents are processed...

zaraki's picture
Asked 5 months 3 weeks ago
Latest activity 5 months 3 weeks ago

How to query a view for a given date?

The key format that we have is [YYYY,MM,DD,u'alphanumeric_string']
I have been trying unsuccessfully to get all the keys for a given day via
the python client.
eg. for 5th Jan 2014
In the query's map_key argument
view = views.iterator.View(cb,design='...

WillFuks's picture
Asked 7 months 5 days ago
Latest activity 7 months 1 day ago

Problems Accessing Full Set in Couchbase

I've created a bucket called "data" with roughly 1.5 million keys that consumes 464 MB of RAM. As an example of key:

key: 2000006394700604500@1384480800
value: {
"products": {
"CA534APF87KKQ": 2,
"CA534APF07KJW": 0.5,
"AT573APF09KPQ": 0.5,...

strets123's picture
Asked 7 months 1 week ago
Latest activity 7 months 1 week ago

How to close couchbase connections in multi threaded environment

I am interested in how to close a connection to Couchbase.

I am using the current version of the couchbase client in python.

Each write to the database is done by a task in celery so needs a new instance of the couchbase client to do the write.

The only way I have found to...