Couchbase Questions: Python SDK

Have a Question? Get it answered by our community

strets123's picture
Asked 7 months 2 weeks 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...

glway's picture
Asked 7 months 2 weeks ago
Latest activity 7 months 2 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 8 months 1 week ago
Latest activity 8 months 3 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...

lenx.wei's picture
Asked 8 months 3 weeks ago
Latest activity 8 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 8 months 3 weeks ago
Latest activity 8 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 8 months 4 weeks ago
Latest activity 8 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 9 months 2 weeks ago
Latest activity 9 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 9 months 2 weeks ago
Latest activity 9 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 11 months 4 weeks ago
Latest activity 11 months 4 weeks 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 12 months 3 days ago
Latest activity 12 months 2 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:

...

Pages