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.

1

From the Collections screen, click the Create Collection button.

2
3

Check the Capped Collection option.

4

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

5

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.

←  CollectionsCreate a Collection with Collation →