What is the need to provide size option on create collection?



What is the need to provide size option on create collection?..

Answer / Senjons Murmu

When creating a new collection in MongoDB, providing a size option (e.g., capped = true and size = N) can be useful for managing collections with limited storage. A capped collection guarantees that it will not grow beyond a specific size, ensuring predictable performance.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MongoDB Interview Questions

How much is mongodb enterprise cost?

1 Answers  


What is cluster in mongodb?

1 Answers  


By default, which replica sets are used to write data?

1 Answers  


Is mongodb atlas free?

1 Answers  


What are replica sets in mongodb?

1 Answers  


Define the mongodb aggregation?

1 Answers  


What is the limitations to run mongodb on 32 bits OS?

1 Answers  


Which all languages can be used with mongodb?

1 Answers  


What is the syntax of mongodb collection?

1 Answers  


What is mongodb architecture?

1 Answers  


Why mongodb is required?

1 Answers  


Is mongodb a server?

1 Answers  


Categories