Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the maximum length of a mongodb query?

Tags:

mongodb

I will execute a big query so i want to know what is the maximum length of a mongodb query ?

like image 954
Onkar Janwa Avatar asked Jul 27 '12 13:07

Onkar Janwa


People also ask

Does MongoDB have a size limit?

The maximum size an individual document can be in MongoDB is 16MB with a nested depth of 100 levels. Edit: There is no max size for an individual MongoDB database.

How long can a MongoDB string be?

MongoDB connector limits text field to 255 characters.

What is limit command in MongoDB?

The limit() function in MongoDB is used to specify the maximum number of results to be returned. Only one parameter is required for this function.to return the number of the desired result. Sometimes it is required to return a certain number of results after a certain number of documents. The skip() can do this job.

What is the maximum number of parameters passed to $IN query in MongoDB?

THE ANSWER: 1,525,198 (That's 1.5 million.


1 Answers

The maximum size of a document, which is what you are constructing when you create a query is 16MB. You can see that, and other limits here:

http://docs.mongodb.org/manual/reference/limits/

like image 142
Adam Comerford Avatar answered Oct 21 '22 22:10

Adam Comerford