gem/oq-engine — pull request #1181 by micheles (2013-05-20 14:28:46+00:00)
Title: Parallelize the queries of kind "insert into gmf agg" by using the standard mechanism

This is an improvement over https://bugs.launchpad.net/oq-engine/+bug/1178054; instead of parallelizing in a ad hoc way, we use the same approach used in gmf_to_hazard_curve_task, i.e. we parallelize by site. I have also added an UNIQUE constraint to the gmf_agg table to prevent incorrect aggregations.