What is the single file limit of the site map, and how to split it into index files when the URL exceeds ten thousand?
The question of how many URLs a single sitemap file can contain, and how to split when the scale exceeds the limit, is a problem that many large-scale websites will inevitably encounter. The answer is not in the settings of a particular system, but in the sitemap protocol itself: the protocol sets a limit on the number of entries and the size of a single file, and it must be split if it exceeds the limit. An index file is used to organize multiple sub-maps. Understanding where the limit comes from and how to split by dimension is essential to ensure the stability of the sitemap on large websites, rather than discovering that the sitemap exceeds the limit only after the inclusion issues arise.
Who determines the limit of a single file?
The limit comes from the Sitemap protocol, not from a platform or a set of systems. The protocol specifies two constraints for a single Sitemap file, and either one should be split if encountered; the index file itself also has a limit on the number of entries. Below is the comparison.
| object | Protocol limit |
|---|---|
| Number of URLs contained in a single Sitemap file | Up to 50,000 entries |
| Uncompressed volume of a single Sitemap file | Not exceeding 50MB |
| Number of sub-maps listed in a single Sitemap index file | Up to 50,000 copies |
Need to remind: The number of items and volume here are the limits for a single file, relying on index files to break through the total size limit. Therefore, the way to truly support ultra-large sites is not to stuff all URLs into a single map, but to use a hierarchical structure of 'index file + multiple sub-maps'.
After exceeding the limit, what dimension should be split by?
Splitting is not a mechanical process of cutting every few lines, but rather selecting a dimension that is meaningful for both collection and operation. There are commonly three types. Split by column or content type, with news, products, and documents each forming a group for easy problem grouping. Split by update time, separating frequently updated active content and rarely moved archived content, so that the engine can more frequently capture the active group. Split by language or site, with each set forming an independent group in multi-language and multi-site scenarios, with clear boundaries.
After the split, use a Sitemap index file to register each sub-map, so the engine knows which sub-maps can be crawled. Keep a clear structure of 'one index pointing to a group of sub-maps' on the hierarchy level, avoid the same URL appearing in multiple sub-maps, and reduce unnecessary crawling waste.
How can we confirm that the new group is still being crawled after the split?
After splitting into multiple sub-maps, the most likely to be missed is that the 'new group has not been registered or pushed'. The site map provides a full list, but it does not guarantee timeliness - the content that has just been released or changed, relying on the map engine to scan is often not fast enough. At this time, active push should be used to make up for it: the system built-in Sitemap is automatically generated and supports active push of links to search engines to accelerate the inclusion of new content. The new sub-maps split out should be indexed and included in the active push scope after generation, rather than just generating files without notifying the engine.
That is to say, the sitemap solves 'full disclosure', active push solves 'timely change', and both need to be coordinated to be complete. The large station needs to align this chain when splitting the map, so as to cover both historical full amount and the timeliness of new and updated.
Common questions
Should it be split if the URL is not up to 50,000?It can be not split when the scale has not reached the top, but it is better to group it in advance according to the column or update frequency, usually better than being forced to split all at once in the future.
What is the relationship between the index file and the sub-map?The index file itself does not list specific content URL, only registers the addresses of various sub-maps, which is equivalent to a 'catalog of maps'.
Do you need to actively push after splitting?To. The map is biased toward full amount, the push is biased toward timeliness, the new group is included in the link to push actively, so that the newly published content can be included faster.