I hope this is easy.
I am running a Rails web application where I host about 100 school sites. One application processes all sites, and I have a management interface where we can add and remove schools, etc.
I want to add a stat to this interface, which is the shared disk space used by this school. Each school’s files are stored in a separate directory structure, so they are easy to recognize. The only problem is that I need it to be fast. So the question is what is the fastest way to find this information. If it could be found using the ruby call on the fly, that would be great, but I'm open to all that will work. Ideally, I would like to avoid caching and generating background data (at least at the rail level). :)
source
share