Open gabrielwol opened 9 months ago
Is volumes_15min_mvt
the only table affected by this issue? Would we have to do this on volumes_15 table as well ?
You're right, we'd need to add the same view/table treatment to volumes_15min
which increases the complexity a bit. Also we'd need to edit many views which refer to these:
volumes_15min:
_RETURN ON aduyves.aadt_miovision_avg_daily _RETURN ON data_requests.i0533_intersec_uoft_atr _RETURN ON covid.miovision_hourly _RETURN ON covid.miovision_hourly_new _RETURN ON covid.miovision_hourly_temp _RETURN ON rapidto.miovision_segments_comparison_daily _RETURN ON rapidto.miovision_segments_comparison_hourly _RETURN ON activeto.miovision_volumes_15min_adj
volumes_15min_mvt:
_RETURN ON data_requests.i0533_intersec_uoft_tmc _RETURN ON gwolofs.open_leg_issues _RETURN ON miovision_api.volumes_15min_tmc
plus all the insert and clear functions
@chmnata one more option I thought of is to change the aggregation order. Instead of find_gaps
-> volumes_15min*
we could do volumes_15min*
->find_gaps
and add an update volumes_15min*
clause to find_gaps
using the new inserts.
This would require much fewer changes to database than above.
Pros:
Cons:
Example implementation and testing: