The first one is {}, which is the query to select the documents; in this case, we will ask Mongo to select all the documents.
DDaudalagidfez uma citaçãohá 2 anos
The skip function skips the given number of documents from the result set, all the way up to the end document in the result set. The limit function then limits the result to the given number of documents.
DDaudalagidfez uma citaçãohá 2 anos
Take a note of the cursor, n, nscannedObjects, and millis fields in the result of the explain plan operation
DDaudalagidfez uma citaçãohá 2 anos
This is due to the fact that Mongo does not scan the remaining documents once the number of documents specified in the limit function is reached.
fb2epub
Arraste e solte seus arquivos
(não mais do que 5 por vez)