Couchbase Questions: sort

Have a Question? Get it answered by our community

sivailango.s's picture
Asked 1 month 2 weeks ago

Sort by particular field rather than key


- I have the documents which has 'order' field. I have to get all records sort by order field.
- User id 3 has more document like below, each has 'order'. Now i want to get all documents by the userId with sort by order. Now i could get all documents of userId is 3....

levonio99's picture
Asked 4 months 2 weeks ago
Latest activity 4 months 1 week ago

Sorting asc vs. desc performance in views and N1QL


We know that the views sort data in ascending order. Since N1QL uses views behind the scenes, we assume that ORDER BY in asc is performant. How does N1QL handle ORDER BY desc? Is there a difference in performance?

For example in SQL relational database when an index is...