At the moment the gmf_agg table is populated from the table gmf for each event based calculation: however the table gmf is never emptied. This means that we are storing twice the space which is needed. This is clearly an issue because the event based calculator in generating large amounts of data and we need to fix it. The problem is that we must make sure that everything in the code
(and in the tests) must access the gmf_agg table and not the old gmf table, which must become only a temporary storage. In the future one may also investigate strategies to remove the gmf table completely.
This ticket can be implemented only after the export procedure and the dump/restore procedure are updated to use the gmf_agg table and not the gmf_table
P.S. Implemented in https://github.com/gem/oq-engine/pull/1182