Yes, I am also interested in possible different approaches of using db indexes. However, in this case we are sorting by result_grp_ordinal in the ```openquake.engine.calculators.risk.hazard_getters.GroundMotionValuesGetter#get_data``` method, so having an index on such column could be worth.