
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeGood news! You're looking at outdated information. The current limit is actually 10 million documents per dataset, not 1 million. According to the technical limits documentation, the maximum number of documents is 10 million, with customization possible for enterprise customers.
Why does this limit exist?
The 10 million document limit exists for a few practical reasons:
Query Performance: Sanity needs to maintain fast query response times across all projects. The limit helps ensure that queries remain performant and don't exceed the 1-minute maximum execution time.
Working Set Management: The system has a maximum working set of 500 MB that can be retrieved from the data backend per query. Very large datasets can make it challenging to maintain this performance characteristic.
Infrastructure Efficiency: Having reasonable limits allows Sanity to optimize their infrastructure for the typical use case while maintaining reliability and speed.
Is 10 million actually limiting?
For most content management use cases, 10 million documents is quite generous. Consider that:
What if you need more?
If you're an enterprise customer and genuinely need more than 10 million documents, the documentation explicitly states that "customization possible for enterprise customers." You can contact Sanity to discuss your specific needs.
Other limits to be aware of:
While the document count limit is generous, you should also consider:
If you're concerned about hitting limits, it's worth reviewing your content architecture to ensure you're modeling your data efficiently!
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store