Take a page out of global_stats book and load on a per era basis.
Optimize the backend to only load eras with data, and only fetch the EraArea relations for the area/era in question. It requires an additional SQL query roundtrip, but doesn't have to load the entire EraArea table into memory.
I think this should be more efficient, especially for the larger EraArea stats.
Take a page out of global_stats book and load on a per era basis.
Optimize the backend to only load eras with data, and only fetch the EraArea relations for the area/era in question. It requires an additional SQL query roundtrip, but doesn't have to load the entire EraArea table into memory.
I think this should be more efficient, especially for the larger EraArea stats.