NationStates Jolt Archive


The 300 Rule for Calculators.

Assorro
01-05-2007, 07:30
I am most interested in reading the explanation for why regions with more than 300 nations in them can not obtain GDP information.

"Regions with more than 300 nations have too many nations to display. This is a rule by NationStates and not NSDossier. They simply do not provide the data."

Okay, we don't necessarily need all the nations displayed but what about the UN totals, regional population and other statistics?

I don't think that there is a way around this but I thought I'd ask. Thanks.
Konania
02-05-2007, 06:06
If I'm remembering correctly (and it's been a while), calculators generally pull information from the XML Feeds (http://www.nationstates.net/cgi-bin/regiondata.cgi) and can only access whatever information is given there. For a small region, that feed just lists the name of every nation. Then the calculator has to get data for every individual nation in the region in order to do that math.

Trying to gather all that information would still put a lot of strain on the server, so I would assume that the 300 nation limit is intended to prevent this.

--Felix, non-mod
The Most Glorious Hack
02-05-2007, 06:24
Trying to gather all that information would still put a lot of strain on the server, so I would assume that the 300 nation limit is intended to prevent this.Indeed. And it would take forever for us to load up a feeder region in the Centre without it. Nasty enough with more than 50, really.
Assorro
02-05-2007, 23:41
Well that makes sense. To get the information for only UN counts and regional population it would still need to scan every nation. It did take a while to load just 250 nations I imagine that you could go and watch a movie trying to load over 4000. Thanks guys.
Angels World
03-05-2007, 05:07
Does this mean that the feeds won't work for the larger regions?
The Most Glorious Hack
03-05-2007, 07:55
Feeds that use regional XML (such as 3rdGeek's calculator) choke and die on regions larger than 300 nations. Other feeds (such as Tracker or Sunset's) only use nation XML and don't really care. Of course, they don't give regional stats.