gem/oq-engine — pull request #1126 by matley (2013-04-11 13:07:10+00:00)
Title: Some trivial optimizations in Risk Event Based calculators

1) Execute event loss tables insert query in a single transaction
2) Do not fetch rupture data when no disaggregation is to be computed
3) Improve best_maximum_distance when hazard is computed at exact locations
4) Use multiple transactions instead of giant ones to improve the overall insert performance
5) Instrumented the code to save profile data