Couchbase Questions: sort

Have a Question? Get it answered by our community

sivailango.s's picture
Asked 1 day 18 hours ago

Sort by particular field rather than key

Hi,

- 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 2 months 4 weeks ago
Latest activity 2 months 3 weeks ago

Sorting asc vs. desc performance in views and N1QL

Hello,

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