+ Reply to Thread
Results 1 to 7 of 7

Thread: dynamic sitemap

  1. #1
    learning_brain is offline x10 Sophmore learning_brain is an unknown quantity at this point
    Join Date
    Apr 2010
    Location
    UK, Midlands
    Posts
    170

    dynamic sitemap

    I have an image search engine which is a dynamic site leading to lots of variations.

    http://www.qualityimagesearch.com/vi...?img_id=******

    My issue is the number of images. I now have a dynamically generated sitemap at http://www.qualityimagesearch.com/sitemap.php (which takes a while to load), but google (although registering the total number) is only indexing about 5,000 of them.

    Is there a size limit or timeout with sitemaps?

  2. #2
    lemon-tree's Avatar
    lemon-tree is offline x10 Minion lemon-tree has a spectacular aura about
    Join Date
    Nov 2007
    Posts
    1,420

    Re: dynamic sitemap

    There are indeed limitations to a sitemap:

    'Sitemap files have a limit of 50,000 URLs and 10 megabytes per sitemap'

    To get around these size limitations, you can use a sitemap index (e.g. http://flight-plan-database.tk/sitemap-index.xml ) files, which is essentially a sitemap of sitemaps. Each sitemap index can hold up to 50,000 sitemap urls (or 10MB), of which each sitemap can hold 50,000 page urls, so in total you could in theory submit 2,500,000,000 urls using 1 level of sitemap index. If you wanted to try to submit more than that, you'd need more than one sitemap index.
    Additionally, Google will not necessarily index every file in the sitemap (e.g. Google indexes about 10% of my pages).

    Also, Google will be looking at your sitemap quite often which might be a bit of a drag on your site if the generation is slow; instead you could cache it and regenerate once a day with a cron job of that script.
    Last edited by lemon-tree; 01-07-2011 at 07:28 PM.

  3. #3
    robstime is offline x10Hosting Member robstime is an unknown quantity at this point
    Join Date
    Nov 2009
    Posts
    9

    Re: dynamic sitemap

    Nvm answered above.
    Last edited by robstime; 01-07-2011 at 07:29 PM.

  4. #4
    learning_brain is offline x10 Sophmore learning_brain is an unknown quantity at this point
    Join Date
    Apr 2010
    Location
    UK, Midlands
    Posts
    170

    Re: dynamic sitemap

    Quote Originally Posted by lemon-tree View Post
    There are indeed limitations to a sitemap:

    'Sitemap files have a limit of 50,000 URLs and 10 megabytes per sitemap'
    Yah - this is a problem then....

    Quote Originally Posted by lemon-tree View Post

    To get around these size limitations, you can use a sitemap index (e.g. http://flight-plan-database.tk/sitemap-index.xml ) files, which is essentially a sitemap of sitemaps. Each sitemap index can hold up to 50,000 sitemap urls (or 10MB), of which each sitemap can hold 50,000 page urls, so in total you could in theory submit 2,500,000,000 urls using 1 level of sitemap index. If you wanted to try to submit more than that, you'd need more than one sitemap index.
    Additionally, Google will not necessarily index every file in the sitemap (e.g. Google indexes about 10% of my pages).

    Also, Google will be looking at your sitemap quite often which might be a bit of a drag on your site if the generation is slow; instead you could cache it and regenerate once a day with a cron job of that script.
    Hmm - interesting - I noticed in yours, you have each on in a directory, whereas mine will all be at one level. Can I have a sitemap directory of different sitemas all in the same directory and, if so, do all SE's recognise sitemap-indexes?

    One last thing on this, I'm guessing your sitemaps are dynamic but are your indexes too?

  5. #5
    lemon-tree's Avatar
    lemon-tree is offline x10 Minion lemon-tree has a spectacular aura about
    Join Date
    Nov 2007
    Posts
    1,420

    Re: dynamic sitemap

    It doesn't make ay difference whether they're in a folder or not, as long as the URL to the sitemap is correct. I only set it up that way so that I can determine which is which at a glance.

    My sitemaps are dynamic and therefore I should really be putting caching on them with regeneration, just I've never got around to it. The sitemap index is just a static file though at the moment, as running a script for two items would be a waste.

  6. #6
    learning_brain is offline x10 Sophmore learning_brain is an unknown quantity at this point
    Join Date
    Apr 2010
    Location
    UK, Midlands
    Posts
    170

    Re: dynamic sitemap

    That makes sense - I couldn't figure how you'd make an effective dynamic index anyway.

    I'm guessing you set up each index with a mysql limit 0-1000, 1001-2000, 2001-3000 etc?

  7. #7
    lemon-tree's Avatar
    lemon-tree is offline x10 Minion lemon-tree has a spectacular aura about
    Join Date
    Nov 2007
    Posts
    1,420

    Re: dynamic sitemap

    Each sitemap is just a direct query with no limit, as I know there are less than 50,000 items that could ever return. It's pretty inefficient, but I have higher priorities.

+ Reply to Thread

Similar Threads

  1. automatic sitemap.xml
    By sen01dj in forum Scripts & 3rd Party Apps
    Replies: 14
    Last Post: 07-03-2009, 09:28 AM
  2. My sitemap overflow what do i do now?
    By balaji2u in forum Scripts & 3rd Party Apps
    Replies: 1
    Last Post: 01-21-2009, 06:32 PM
  3. Sitemap For wordpress
    By balaji2u in forum Scripts & 3rd Party Apps
    Replies: 1
    Last Post: 12-02-2008, 06:20 AM
  4. sitemap generator vs seo
    By allinone in forum Off Topic
    Replies: 7
    Last Post: 10-20-2008, 07:21 PM
  5. How to create a sitemap ?
    By naresh in forum Programming Help
    Replies: 8
    Last Post: 06-23-2008, 02:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers