Hello,
I have a large DB with more than 100k records, I need to split it to multiple sitemap files. As your code, I use SitemapAndIndexStream to generate all sitemap files from sitemap-1.xml to sitemap-9.xml for example.
Now I want to run code to generate sitemap everyday, and it should only generate from last item on sitemap-9.xml to the new latest item on DB. If I run SitemapAndIndexStream again, it will query all the items on DB and generate all files again, it will take more resources and not good.
How can I do this?
Hello,
I have a large DB with more than 100k records, I need to split it to multiple sitemap files. As your code, I use
SitemapAndIndexStreamto generate all sitemap files from sitemap-1.xml to sitemap-9.xml for example.Now I want to run code to generate sitemap everyday, and it should only generate from last item on sitemap-9.xml to the new latest item on DB. If I run
SitemapAndIndexStreamagain, it will query all the items on DB and generate all files again, it will take more resources and not good.How can I do this?