Hm, that's disappointing. It really doesn't make sense to order null values before sortable values.
--To view this discussion on the web visit https://groups.google.com/d/msg/mongodb-user/-/zoiZEDod_jYJ.
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
This doesn't answer your question, but if you guys don't want to see the null values in the results, you could not define them--leave position "unset"--and use a sparse index. Obviously, this is a different result set (as it leaves out the records that don't have position), but it might suit your needs.
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mongodb-user/-/uk50r7UJUkoJ.
I just solve it with higher than possible numbers or strings that forces the null results to the back. Works a treat in my app coding and works very well on the db side, fair enough it is a little dirty when you look at it in mongo console or something but meh solves having to degrade performance through two queries and trying to paginate them as one query.
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mongodb-user/-/HigkbCO6DIcJ.
Depends on the scenario.
With the Alphabet I always use "zz" that ensures it is actually behind "z"
Hi,
I believe the issue discussed in this thread is captured in SERVER-24310. If this is the feature you seek, please vote/comment on the issue describing your use case.
Best regards,
Kevin