Add extra indices on sounding tables

This commit is contained in:
XANTRONIX 2025-02-25 16:10:30 -05:00
parent 951ec6b48b
commit 72574b1faf

View file

@ -113,6 +113,9 @@ create table xmet_sounding (
data_source_other TEXT NOT NULL
);
create index xmet_sounding_station_idx on xmet_sounding (station);
create index xmet_sounding_timestamp_observed_released_idx on xmet_sounding (timestamp_observed, timestamp_released);
select AddGeometryColumn('xmet_sounding', 'location', 4326, 'POINT'),
CreateSpatialIndex('xmet_sounding', 'location');
@ -134,4 +137,6 @@ create table xmet_sounding_sample (
FOREIGN KEY (sounding_id) REFERENCES xmet_sounding (id)
);
create index xmet_sounding_sample_sounding_id_idx on xmet_sounding_sample (sounding_id);
commit;