Couchbase Questions: Python SDK

Have a Question? Get it answered by our community

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

access denied to my own posts

Hi,

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?

thanks,

Lenx...

lenx.wei's picture
Asked 5 months 3 weeks ago
Latest activity 5 months 3 weeks ago

a python sdk bug to query with a loooong key

Hi,

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='...

mwkarl's picture
Asked 6 months 2 hours ago
Latest activity 5 months 4 weeks ago

DLL load failed: The specified module could not be found.

I've installed Couchbase Server on a Windows 7 64bit laptop along with the Python libs, etc in line with the setup guide, however I am getting the following error when importing Couchbase in my Python test script:

DLL load failed: The specified module could not be found....

idragoev's picture
Asked 6 months 2 weeks ago
Latest activity 6 months 1 week ago

How to use view with composite keys?

Hi,
I'm using python to take data from view with composite key:
function (doc, meta) {
if (doc.type == "feedData")
{
dt = dateToArray(doc.at);
dt.unshift(doc.feedId);
emit(dt, doc.v);
}
}

In python I have the...

fischer7047's picture
Asked 6 months 2 weeks ago
Latest activity 6 months 2 weeks ago

view query keys size limit

Hi,

We make pretty heavy use of views and in particular the multi-get form of query:

view.query(design,view,keys=[key1,key2,key3])

It looks like this is very length limited, so that we can only supply from 50-100 keys, depending on the length of the keys supplied. The...

adonoho's picture
Asked 9 months 19 hours ago
Latest activity 9 months 12 hours 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 9 months 4 days ago
Latest activity 9 months 3 days 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 9 months 6 days ago
Latest activity 9 months 4 days 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 9 months 1 week ago
Latest activity 6 months 3 weeks 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 9 months 1 week ago
Latest activity 9 months 1 week 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...

Pages