S
S
stanced2018-01-22 11:00:25
linux
stanced, 2018-01-22 11:00:25

How to create a sitemap for 5 million pages?

Hey! There is a website with 5 million pages. You need to make a sitemap, you are interested in a server-side solution in the console, preferably a multi-threaded one. All that I found on github is one thread and very slow work. Are there any options?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Mikhail Osher, 2018-01-22
@miraage

https://www.sitemaps.org/protocol.html

You can provide multiple Sitemap files, but each Sitemap file that you provide must have no more than 50,000 URLs and must be no larger than 50MB (52,428,800 bytes). If you would like, you may compress your Sitemap files using gzip to reduce your bandwidth requirement; however the sitemap file once uncompressed must be no larger than 50MB. If you want to list more than 50,000 URLs, you must create multiple Sitemap files.

V
Victor Taran, 2018-01-22
@shambler81

EE so it's generally easy
https://www.mydefile.ru/sitemap.xml

D
Dmitry Entelis, 2018-01-22
@DmitriyEntelis

It seems to me that parsing a site using external links is very resource-intensive and crooked.
It is logical to generate a sitemap by hardcoding the site structure / requests to the database, at the same time you can correctly fill in the fields lastmod, changefreq, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question