L
L
LXSTVAYNE2021-08-04 16:56:54
MongoDB
LXSTVAYNE, 2021-08-04 16:56:54

How to properly select elements in MongoDB?

You must first sort the documents by the date field in descending order (date in the format yyyy.mm.dd so that the lexicographic comparison will work fine), then find the document by _id and return the next 30. How to do this in an optimized way?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question