0
votes

Is there any max limit/restriction for matching criteria in Mongodb for the update query? can i pass more than 1000/2000 "_id" in an array to update them ?

1

1 Answers

0
votes

According to MongoDB documentation (there no any mentions about it), there no any limitations for the query length. Looks like that it more depends on the MongoDB client / language driver. For example, the MongoDB shell has the 4096 bytes limit.