Couchbase Questions: Python SDK

Have a Question? Get it answered by our community

adonoho's picture
Asked 1 year 1 month ago
Latest activity 1 year 1 month ago

Supplying CAS to set_multi() or replace_multi() ...

Gentlefolk,

Neither set_multi() nor replace_multi() appear to have a way for me to supply them a CAS value per item. delete() does supply such a mechanism. It is documented in the Python SDK connection.delete() section:

Remove multiple keys with CAS:

...
anktosh's picture
Asked 1 year 1 month ago
Latest activity 1 year 1 month ago

Installing couchbase-1.0.0 on Ubuntu

Hello,

I am trying to install couchbase sdk (1.0.0) on my Ubuntu machine. But although setup.py install exited without any error but now when I do "from couchbase import Couchbase" it gives me an error:

...
adonoho's picture
Asked 1 year 1 month ago
Latest activity 1 year 1 month ago

Design Question/Request: Why do .set() and .add() return OperationResult instead of ValueResult?

Gentlefolk,

When I .get() something from the server I get a ValueResult object. It contains three key items that I will frequently need together: key, value and cas. When I do a .set() or .add(), the client library returns me an OperationResult that only has key and cas.

It would...

adonoho's picture
Asked 1 year 1 month ago
Latest activity 11 months 3 days ago

Documentation Omission: CAS in ValueResult

Gentlefolk,

As a newbie to your world, I may see things that others don't. If I'm wrong, please be nice and correct me.

At the client documentation hosted at: http://pythonhosted.org/couchbase/api/...

Stag's picture
Asked 1 year 1 month ago
Latest activity 1 year 1 month ago

View performance

Hi, is it normal that the view latency drops like a rock at about 10,000 view entries (it's a _stats mapreduce)? A get() query against the view takes about 40 milliseconds with the new Python 1.0.0 SDK. What will it look like after some hundred million view entries?
I didn't test the...

adonoho's picture
Asked 1 year 1 month ago
Latest activity 1 year 1 month ago

Feature Request: Log REST queries made by the Python client

Gentlefolk,

Logs are good. Logs are very good for learning how complex systems, such as Couchbase, operate. I would like the Python SDK to offer me the option of having my REST API calls logged for my inspection.

For example, I am having a problem getting a view query to function...

jasonsirota's picture
Asked 1 year 1 month ago
Latest activity 1 year 1 month ago

How do I connect to a password protected bucket?

I've been writing a small app (in this case, a utility tool) that uses the Python client library version 1.0.0-beta on Windows. One thing I'm wondering is how to connect to a password protected bucket.

jasonsirota's picture
Asked 1 year 2 months ago
Latest activity 1 year 1 month ago

Is the client library thread safe?

I'm just about to begin a new project where I'll be using the Python client library in a multithreaded app. What do I need to be aware of when it comes to thread safety?

jasonsirota's picture
Asked 1 year 2 months ago
Latest activity 1 year 1 month ago

How do I store a set in couchbase?

I have been using the Couchbase 1.0.0-beta python client and I'm getting great results so far!

That said, I am getting an exception when storing a set. how do I store a set in couchbase?

wave's picture
Asked 1 year 5 months ago
Latest activity 1 year 1 month ago

Is Couchbase Python client gevent safe?

Is Couchbase Python client gevent safe and can be used within geven based application?

Pages