Couchbase Questions: Couchbase views

Have a Question? Get it answered by our community

zbintliff's picture
Asked 1 day 4 hours ago

Multiple Views on Design Document

I'm using couchbase for proof of concepts and such. I am reading about views and design documents and understand them (I think). So far whenever I wanted to create a new view I created a new document as well. Is there any benefit or drawback for putting multiple views on the same design...

mlipovits's picture
Asked 5 days 5 hours ago
Latest activity 3 days 12 hours ago

Issues returning unique values

We are having some performance issues with our ongoing project because we get back lots of values from our views and cannot group them because we don't use any reduce function.
Here, we want all gpi - values which share the came cell_id back. problem here is that lots of document share the same gpi and the same cell_id. The group function is no option since we found no reduce to perform here. Since we get back so many duplicate values we have to put in a set in python so they are unique we lose a lot of performance due to iterating through all values couichbase returns.

An example doc and view are in the full description.
Does anyone have any idea how we could solve this problem?

jasonfill's picture
Asked 3 weeks 1 day ago

Getting Most Updated/Reliable Data Back From A View

I am looking for best practices for getting updated and reliable data back from a view. I have read a bit about the stale parameter and I understand that sending stale=false will force a reindex prior to returning the results - however it is clear there is a performance hit for this. (...

vakoroteev's picture
Asked 3 weeks 2 days ago

Strange behavior with paginated query.

I get a strange behavior with paginated query. While I paginate on the result set, I get duplicates of some documents. I'm doing the following in my code:

...
adiefatlady's picture
Asked 3 weeks 5 days ago

Howto create an index for date range

I would need to be able to get documents based on them being "active". A document is active if its online and "now" is between the start and stop date.

e.g.
{
online:true,
startDate:"2014-01-01",
stopDate:"2014-01-10"...

bibhas's picture
Asked 3 months 3 days ago
Latest activity 2 weeks 15 hours ago

How does stale query work?

Hello,

Sorry, I know the documentation is very clear about how stale=ok should work. But, I am not seeing the right behavior.

I am running a _count reduce query with stale set to OK.

...
vantage's picture
Asked 3 months 1 week ago

Bucket views won't refresh with just 186 records

I'm working on a project with a Couchbase store, and earlier it was working fine but when I added a bunch of items to the project's main Couchbase bucket I ran into problems. The items in the bucket only number 186, but the views associated with this bucket are refusing to refresh.

If I...

socmag's picture
Asked 4 months 3 weeks ago

ISO 8601 Date in Map function

Hi,

I'm evaluating Couchbase for a job, and experimenting with some things...

I'm trying to write a map/reduce that counts posts by day.

In the document, the created_date is specified in the ISO 8601 format.
(I'm assuming the libv8 that you are using has the ISO 8601...

bibhas's picture
Asked 5 months 1 week ago
Latest activity 5 months 1 week ago

How to prevent same key and document ID appear multiple times in index?

My document is like this:

{
    id: 'ABC123',
    background: 'red',
    foreground: 'black',
    border: 'black'
}

I need to be able to find documents by color. So, I create this view...

sruthi's picture
Asked 5 months 2 weeks ago
Latest activity 5 months 2 weeks ago

how to query mulitiple composite key?

Hi,
question is whether we can give many composite keys in startkey and end key

example my data in bucket:
{
{
name:"Sruthi",
gender:"F",
age:"23"
}
{
name:"raghun",
gender:"M",
age:"24"
}
{
name:"david",...

Pages