Supposed that a collection has billions of documents. Can mongodb handle queries that have hundreds of filter conditions on this collection? Assuming that this collection is indexed properly?
The document limit and max nesting depth is fine. They will not be exceeded. The reason for queries having so many conditions is because the user is free to combine or
statements with and
statements arbitrarily. So even if a document only contain 50 fields, the number of filter conditions can balloon easily to hundreds.