gem/oq-engine — pull request #984 by larsbutler (2012-12-20 14:30:05+00:00)
Title: Calculation tweaks, reporting, and performance fixes

While troubleshooting performance issues with a large calculation, I identified a handful of miscellaneous improvements that need to be made to the code. This branch includes a bunch of them, and they're not really related.

Most of the changes fall into 4 categories:

- indices on some FKs for tables where searches were taking a long time
- reporting to indicate the number of tasks in queue at any given time; this is logged at the INFO level
- caching of the calculation geometry; in some cases, we were recomputing the mesh several times in a loop, and for big calculations with big geometries, this was incredibly wasteful
- configuration; see changes to celeryconfig.py and the comments in openquake.cfg for more info