Joint session with Vercel: How to build intelligent storefronts (May 15th)

Sanity scalability: Migrating 10,000 static pages - build times & limitations?

10 repliesLast updated: Nov 29, 2025

Hello community,
I have a question regarding Sanity and scalability. I have a site I want to convert into a Sanity project. The website has approximately 10,000 static webpages which currently is manually maintained. Hypothetically if you were to migrate a website of this size, how well would Sanity cope? I'm wondering what would the build time would look like when deploying and any other potential issues/limitations.

Does anyone here have any experience with content of this size and if so could you possibly share any tips? The content I'm working with is mainly text and not a lot of media. I want to make sure Sanity is the right product for this project.

Many thanks in advance
AI Update

Sanity can absolutely handle a website with 10,000 static pages - this is well within the platform's capabilities. Let me address your specific concerns about scalability, build times, and share some practical tips.

Dataset Size & Performance

Sanity is built to scale. The platform handles datasets with tens of thousands to hundreds of thousands of documents without issues. Your 10,000 pages is a moderate-sized dataset that should perform very well.

Key scalability features:

Build Time Considerations

Build times depend more on your frontend framework and build strategy than on Sanity itself:

Modern approaches to avoid long builds:

Build time optimization tips:

Migration Strategy

For importing 10,000 pages, Sanity provides robust tools:

Dataset Import/Export:

# Import your migrated content
sanity dataset import content.ndjson production

Tips for smooth migration:

Rate Limits & API Considerations

Good news here: cached content has unlimited rate limits on the API CDN. For uncached requests, Sanity's limits are generous and designed for production workloads. Most sites with 10,000 pages won't approach these limits.

Practical Tips for Your Scale

Query optimization (from Sanity's high-performance GROQ guide):

Content structure:

Real-World Performance

While specific case studies aren't readily available in the docs, Sanity's architecture is designed for enterprise scale. The platform includes features like:

Why Sanity Is a Good Fit

For your use case of migrating 10,000 mostly-text pages from manual maintenance:

Scalability: Proven to handle much larger datasets
Performance: Fast queries with CDN caching
Migration tools: CLI and APIs for bulk operations
Flexible builds: Works with ISR, SSG, or SSR strategies
Content modeling: Structure your 10,000 pages however makes sense
Real-time updates: Content changes propagate quickly without full rebuilds

The main consideration is choosing the right build strategy for your frontend - ISR or on-demand generation will give you much better performance than trying to statically generate all 10,000 pages at build time.

Show original thread
10 replies

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

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.

Related contributions