Docs Menu

Docs HomeView & Analyze DataMongoDB Compass

Create a Capped Collection

On this page

  • Steps
  • Restrictions and Limitations

Capped Collections are fixed-sized collections that support high-throughput operations that insert and retrieve documents based on insertion order.


From the Collections screen, click the Create Collection button.


Check the Capped Collection option.


Enter the maximum number of bytes that the collection can hold.


The following restrictions and limitations apply when creating a capped collection:

  • Custom collation is the only Advanced Collection Option that can be used alongside your capped collection.

  • If you import a data set larger than the maximum size of the capped collection, Compass only loads the last documents of the data set and drops the oldest documents.

  • Once the collection is created, you cannot adjust the maximum number of bytes.

← Collections