Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Nulls Ordering support #3010

Closed
maykonmeneghel opened this issue Sep 14, 2022 · 2 comments
Closed

Add Nulls Ordering support #3010

maykonmeneghel opened this issue Sep 14, 2022 · 2 comments
Labels

Comments

@maykonmeneghel
Copy link

maykonmeneghel commented Sep 14, 2022

We would like an improvement to be added to include Nulls Ordering support. When sorting a given field in ascending order, null values appear first. Currently, to get around this problem, we have to deal with two queries, one returning only valid values and the other with null values, and then we merge the result of the two queries, which implies a bad performance, since the Couchbase API has support for nulls ordering in the query itself. It seems to be a relatively simple solution.

Here, in the documentation you can see API support for Nulls Ordering:

https://docs.couchbase.com/server/current/n1ql/n1ql-language-reference/orderby.html

Here's an open thread dealing with the problem:

https://forums.couchbase.com/t/sorting-the-field-with-empty-value-always-at-the-bottom-of-the-lists/26023

@jayahariv
Copy link
Contributor

tracking ticket : https://issues.couchbase.com/browse/CBL-3714

@velicuvlad velicuvlad closed this as not planned Won't fix, can't repro, duplicate, stale May 30, 2023
@velicuvlad
Copy link
Contributor

velicuvlad commented May 30, 2023

Know issue from the underlying implementation (SQLite) order. Nothing we can do on our side

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants