2011/1/28 Ana Belén Ramón <[email protected]>: > Hi! > > I'm thinking on the best way to structure a large GAE site (+1M urls). > > I need a sitemaps.xml file in the root path of the domain file that > links to sitemap[n].xml files. > > The sitemaps.xml file can link up to 1000 sitemap[n].xml files and > each of these sitemap[n].xml files has up to 50K urls. > > Is there a way to dinamically generate the files with the 50K urls? > > Any other way to do it without fetching 50K entities at a time?
Can use a background job, that fetches a list of (say) 10,000 urls, and build's a portion of a file. This could be done via cron nightly, that insitgates a bunch of tasks. That file "part" is stored in the datasotre. Then the query that actully outputs the sitemap, only has to fetch 5 entities. > > Thanks! > > PS: The files cannot be static because they have to be placed in the > root path of the domain :( Static files can be in the root of a domain. See this example for favicon.ico http://code.google.com/appengine/kb/general.html#erroruris > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
