Couchbase Questions: View

Have a Question? Get it answered by our community

rebbort's picture
Asked 2 months 3 weeks ago

Remove expired keys from view

I want to build view next way, for example:

users:{
    "10":{
         uid:"10"
         type:'user',
         name:'Username',
         items:{
                343:{'level':4, 'price':124, 'expire':
...
xuxj's picture
Asked 4 months 3 weeks ago
Latest activity 2 months 3 weeks ago

Using Java to Perform a Multi-Key Get on a Couchbase View

user1
{
"name":"name1",
"age":23
}
user1
{
"name":"name2",
"age":22
}

how to query find by name and can pass parameter,
such as
public List findByName(String name){

}

my english is very pool,i...

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. (...

bmhardy's picture
Asked 5 months 3 weeks ago

Views Maps Queries Javascript and Java

Hello,

I have been examining the Android couchbase lite GrocerySync application and have some questions.

1. Creating views using Java: The code for the GrocerySync app creates views with Mappers directly in it's Java code. Is it good practice to do this or is it better to create a...

suneel.kumar's picture
Asked 6 months 1 day ago
Latest activity 5 months 4 weeks ago

Why do we need to use rereduce?

I have gone through the documentation available in website to understand the usage of rereduce functions, but I was not able to figure it out. Can somebody explain me the proper use of rereduce with exampled illustrations.

Thanks in advance,
SK

Matzz's picture
Asked 8 months 1 week ago
Latest activity 8 months 1 week ago

When rereduce is triggered

I play with couchbbase beer-sample. I use views to get list of cities in state.
My map/reduce functions work quite well but I wonder when rereduce is triggered.
It looks like after adding new document to bucket whole view is processed again from the begining. Even if I remove...

jesuslg123i's picture
Asked 9 months 2 days ago
Latest activity 8 months 3 weeks ago

Group level on Node.js

Hello,

I trying to make work the group_level in node.js but I always get this error:

{ [Error
...
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...

mwkarl's picture
Asked 10 months 4 days ago
Latest activity 10 months 2 days ago

View Map to return Key/Value pairs as Value

Is it possible to return Key/Value pairs in emit() using cb.query() in a similar way to the return value of cb.get() ?

cb.get() returns the complete object, however a cb.query() returns an indexed array as per the array ([ doc.x, doc.y , doc.z]) format of the emit() return value.

...

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

How to do number range search?

I have documents like these:

#1 { "start": 99, "end": 110, "country": "US" }
#2 { "start": 112, "end": 126, "country": "CA" }

If a value falls between "start" and "end", inclusive, I...

Pages