CrisisCleanup / crisiscleanup-2

[OLD] This version of the codebase was retired on March 27, 2020. Open Source Collaborative Disaster Recovery and Cleanup
https://www.crisiscleanup.org
Other
42 stars 24 forks source link

Pull orgs from the database in a way that does not slow down the map #379

Closed arroyoDev closed 6 years ago

arroyoDev commented 7 years ago

This rolling list of Volunteer Organizations is 1000 plus and growing. I want it to cycle through in random order, but not bog down anything. right now it is just a few statically loaded. It needs to pull from the whole is of VERIFIED organizations.

screen shot 2017-09-21 at 12 26 37 am

It's located on the bottom of the map page.

TimBanks commented 7 years ago

The easiest way would probably to have it hit a cache backend like redis? Even if you store it in another table, you're going to have contention with it pulling from the database. This would allow the list to be updated with a separate job running every so often and the footprint for the cache should be pretty small.