Docs Menu

Create a Capped Collection

On this page

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

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

  • Custom collation is the only Advanced Collection Option that you can use 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 can't adjust the maximum number of bytes.

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

On this page