Skip to content

Nitrite/Java: Any way to sort by several fields? #25

Answered by anidotnet
Doc1faux asked this question in Q&A
Discussion options

You must be logged in to vote

Currently sort by multiple fields is not supported in nitrite 3.x. You need to get the List<T> from Cursor<T> and perform the sorting on the list in application side.

Having said that, in version 4.x, I am introducing support for sort by multiple fields which can take advantage of compound index if available. Stay tuned.

Replies: 0 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Doc1faux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
nitrite-java Nitrite for Java
2 participants