Couchbase Questions: Python SDK

Have a Question? Get it answered by our community

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

Pages