Sanity Pioneers: Get early access to betas, extra AI credits, and a direct line to the engineering team. Apply now

Sanity import transaction size limits?

2 repliesLast updated: Nov 29, 2025

Hey there. I can't seem to find any size limits for sanity/import transactions? Are there any that I'd need to be aware of?
AI Update

Based on the documentation I've reviewed, here's what you need to know about transaction size limits for @sanity/import:

Transaction Size Limits for @sanity/import

While the @sanity/import package doesn't have explicitly documented transaction size limits in its own documentation, there are important API-level limits you need to be aware of:

Key Limits:

How @sanity/import Handles This:

According to the importing data documentation, when using client libraries (which @sanity/import uses under the hood):

Best Practices:

The 4 MB mutation request limit is the main constraint you'll encounter with @sanity/import transactions. The tool handles this automatically by batching your imports appropriately, but if you're building custom import logic, you'll need to manage this yourself.

Show original thread
2 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