diff --git a/sql/pre_aggregates.sql b/sql/pre_aggregates.sql index 912c3ff5df328f887ca7a97ccaba8577954d1258..11fc3af73b01e0f74a3bfbd878f410242e129fc8 100644 --- a/sql/pre_aggregates.sql +++ b/sql/pre_aggregates.sql @@ -1,6 +1,6 @@ ------------------------------------------------------------------------------------ -create index idx_obs_spoid_day on public.observations (sampling_point_id, date_trunc('year'::text, from_time)); +create index idx_obs_spoid_year on public.observations (sampling_point_id, date_trunc('year'::text, from_time)); create index idx_obs_spoid_day on public.observations (sampling_point_id, date_trunc('day'::text, from_time)); VACUUM FULL ANALYZE observations;