SEO + AEO on AutopilotFrom the team at Stackmatix
The Growth Library

Partition a Growing Sitemap Without Losing Coverage

Split sitemaps using URL and uncompressed-size limits, then reconcile eligible inventory, partitions and the sitemap index with a worked coverage example.

Split a sitemap when the actual file limits or an operationally useful grouping require it. Generate each partition from the approved canonical inventory, then reconcile the combined output back to that inventory. A sitemap index is a directory of sitemap files; it does not prove that every intended page appears in them.

For a modest publication, one correctly generated sitemap may be sufficient. Do not add a hierarchy simply because it looks sophisticated. The goal is an output the team can verify and maintain as the publication grows.

The sitemap change-log guide covers truthful modification records. This procedure covers capacity, partition membership and complete eligible-URL coverage. Those are separate concerns, and a file can have accurate dates while still omitting a whole content family.

Apply both documented file limits

Google's sitemap guidance states a limit of 50,000 URLs or 50 MB uncompressed for one sitemap. If either limit is exceeded, split the file. Compression does not turn the uncompressed size limit into a compressed-download limit.

Count the actual serialized output. A file with fewer than 50,000 URLs can still become too large if entries contain substantial additional information. Conversely, a comfortably small byte count does not permit more than the URL limit. Use headroom appropriate to actual growth instead of planning every file at its maximum.

Treat sitemap submission as a discovery signal, not an indexing command. Inclusion does not override noindex, fix inaccessible content or establish that Google will select the declared URL. The eligibility decision belongs in the inventory before files are generated.

Define the eligible inventory

Create a stable record per intended public canonical URL. Include content state, route family, preferred URL, last substantive modification when known, and any exclusion reason. Exclude drafts and resources that should not be listed. Do not infer eligibility solely from a successful HTTP response: an internal utility page can return 200 without belonging in the sitemap.

Normalize inventory identifiers using the application's approved URL contract. Preserve meaningful differences rather than lowercasing everything as a convenience. If two content records generate the same canonical URL, resolve that collision before partitioning.

Inventory checkFailure it preventsOwner decision
Approved public stateDrafts listed as public resourcesEditorial or product owner
Canonical destinationVariants displacing preferred URLsSite maintainer
Unique resource identityDuplicate records in multiple filesContent-system owner
Working expected routeDead or redirected listed URLsEngineering
Truthful revision fieldBuild time replacing content historyEditorial operations

Keep exclusion counts and reasons. Without them, a later difference between the CMS count and sitemap count can look like accidental omission even when it reflects a deliberate publication policy.

Work a fictional 126,000-URL inventory

Suppose a fictional documentation publication has 126,000 eligible URLs after its draft and utility exclusions. A first partition plan places 45,000 URLs in one file, 45,000 in a second and 36,000 in a third. The counts sum to 126,000 and each file is below the URL limit.

The generator measures the final uncompressed XML files as 32 MB, 29 MB and 25 MB respectively. In this invented example, each also fits under the documented size limit. Those measurements are example inputs, not estimates of how many bytes any particular documentation site will produce.

The reconciliation then discovers that 300 URLs appear in both the first and second files while 300 eligible URLs appear nowhere. The sum of row counts still equals 126,000. That total is insufficient: the union contains only 125,700 distinct URLs, with 300 eligible resources missing.

The repair is partition membership, not another sitemap submission. Correct the duplicate assignment and include the missing set, then recompute counts, size and the exact union. A reassuring overall count should never replace identity-level coverage checks.

Choose partition keys that remain explainable

A route family, language edition or stable content identifier can support a useful partition. Choose a method that the generator can reproduce and the team can investigate. A manually maintained list of arbitrary filenames becomes fragile when content moves or a new edition launches.

Decide what happens at a boundary. If a file reaches its headroom threshold, does the generator open another partition, rebalance a defined range or stop with a clear error? Avoid a process that silently drops overflow entries while still writing valid XML.

Stable partitions can make operational comparisons easier, but they are not a ranking technique. If the key changes, retain a before-and-after membership record so an operator can distinguish expected redistribution from lost coverage. Update the sitemap index to reference the files that actually belong to the current release.

Validate files, the index and delivery

Parse every generated file, check URL escaping and inspect actual absolute destinations. Validate the sitemap index separately; listing a nonexistent file does not publish its contents. Fetch the index and representative child files through the intended public path after deployment.

Compare three sets: eligible inventory, listed URLs across child files, and child files referenced by the index. Report missing URLs, unexpected URLs, duplicates and unreferenced files independently. An orphaned child file may exist on disk without being included in the submitted index.

Use the important-page discovery diagnosis if an important listed resource still has a separate access, rendering or canonical issue. The sitemap does not replace contextual internal navigation. A buyer should have a meaningful path to the resource rather than relying on an XML inventory to discover it.

Keep retirement and revision decisions outside the count

Removing a URL from a sitemap does not by itself remove the page from search. Retire or redirect the resource according to its actual reader job. The redirect-map method is useful when a replacement preserves that job; an unrelated homepage is not a universal substitute.

Likewise, repartitioning a file does not substantively modify every resource inside it. Preserve truthful lastmod data rather than stamping the release date into all entries. File generation, source revision and public deployment are different events.

If a partition becomes unexpectedly smaller, inspect additions, removals, exclusions and movement between partitions before celebrating a cleaner inventory. A count change without its membership explanation leaves the operator unable to tell whether maintenance succeeded or a generator failed.

Release only when the reconciliation closes

The acceptance record should include source inventory version, partition rules, per-file URL and byte counts, union coverage, duplicate checks and deployed index references. Any deliberate exception needs a named reason and owner.

A failed generation should leave the previous known-good publication intact where the deployment design supports that behavior, rather than replacing it with partial output. Coordinate the release process with engineering; a standalone editorial script should not make assumptions about atomic deployment.

The result is a complete, inspectable inventory signal. Later discovery and indexing observations remain separate evidence. Recheck capacity after meaningful corpus growth, template changes that enlarge entries, or a new language or content family, rather than building a complex partition system and assuming it will remain correct forever.

Sources

Matt Pru

Co-founder and CEO of Stackmatix. Writing about growth, customer acquisition, and the decisions behind useful marketing. Connect on LinkedIn.

Developed with AI assistance under Matt's editorial direction. Our Editorial Approach