Couchbase Questions: Couchbase views

Have a Question? Get it answered by our community

jasonfill's picture
Asked 4 months 3 weeks 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 4 months 4 weeks 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 5 months 1 day 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 7 months 1 week ago
Latest activity 4 months 2 weeks 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 7 months 2 weeks 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 9 months 1 day 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 9 months 2 weeks ago
Latest activity 9 months 2 weeks 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 9 months 3 weeks ago
Latest activity 9 months 3 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",...

sruthi's picture
Asked 10 months 3 days ago
Latest activity 10 months 2 days ago

how to give muliple composite keys in startkey and endkey to search in views

Hi, i create a view which emit composite keys

function (doc, meta) {
emit([doc.name,doc.sex,doc.age], doc);
}

i want to get results for multiple composite keys. like [['name1','male','99],['name2','female','99']]

i have group of names along with sex but i...

mxav@yahoo.com's picture
Asked 10 months 1 week ago
Latest activity 10 months 1 week ago

[Views] startkey_docid doesn't work except for _all_docs

Hello,

The startkey_docid view parameter doesn't seam to have any effect on views.
It only works with the "undocumented/unsupported" _all_docs view each time we test it

Example :

- Create the default bucket on a fresh couchbase cluster/server
- Insert 3 keys...

Pages