Couchbase Questions: Python SDK

Have a Question? Get it answered by our community

arachide99's picture
Asked 7 months 4 days ago
Latest activity 7 months 1 day ago

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


tkouts's picture
Asked 7 months 5 days ago
Latest activity 6 months 3 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 8 months 1 week ago
Latest activity 8 months 5 days 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 8 months 2 weeks ago
Latest activity 8 months 2 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 9 months 4 weeks ago
Latest activity 9 months 3 weeks 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 10 months 2 days ago
Latest activity 10 months 1 day 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...

glway's picture
Asked 10 months 1 week ago
Latest activity 10 months 6 days ago

Querying views

Hello everyone,
I have setup couchbase, created a bucket and created a view:
The view is not empty and has 3 records. However:

>>> from couchbase import Couchbase
>>> cb = Couchbase.connect(username="", password="...

dgrim's picture
Asked 10 months 3 weeks ago
Latest activity 10 months 3 weeks ago

Query view not returning any results

I am new to the Couchbase Python SDK and am having an issue with retrieving view data.

I can retrieve a row successfully using:

res = cb.get("SESS_1111_61412333555")

On the...

lenx.wei's picture
Asked 11 months 1 week ago
Latest activity 10 months 3 weeks ago

access denied to my own posts


after i asked a question just now and posted it, the system told me "access denied" to the posts...

some configuration wrong in the web site?



lenx.wei's picture
Asked 11 months 2 weeks ago
Latest activity 11 months 2 weeks ago

a python sdk bug to query with a loooong key


Sorry for posting it here, because currently the web site doesn't allow me to post it to the python client issues...

When I use python sdk 1.1.0 with couchbase 2.2.0 and execute
rows = ct.query('a', 'path', key='...