Couchbase Questions: Python SDK

Have a Question? Get it answered by our community

simonh10's picture
Asked 3 days 19 hours ago
Latest activity 2 days 15 hours 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)....

stclaird's picture
Asked 2 weeks 18 hours ago
Latest activity 1 week 14 hours ago

Simple Search Question

Hello

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 1 month 2 weeks ago
Latest activity 1 month 2 weeks ago

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

python

tkouts's picture
Asked 1 month 2 weeks ago
Latest activity 1 month 6 days 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 2 months 3 weeks ago
Latest activity 2 months 2 weeks 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 3 months 4 days ago
Latest activity 3 months 3 days ago

How to query a view for a given date?

Hello,
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 4 months 1 week ago
Latest activity 4 months 1 week 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 4 months 2 weeks ago
Latest activity 4 months 2 weeks 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 4 months 3 weeks ago
Latest activity 4 months 3 weeks ago

Querying views

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

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

dgrim's picture
Asked 5 months 1 week ago
Latest activity 5 months 6 days 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...

Pages