Add extra indices on sounding tables
This commit is contained in:
parent
951ec6b48b
commit
72574b1faf
1 changed files with 5 additions and 0 deletions
|
@ -113,6 +113,9 @@ create table xmet_sounding (
|
||||||
data_source_other TEXT NOT NULL
|
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'),
|
select AddGeometryColumn('xmet_sounding', 'location', 4326, 'POINT'),
|
||||||
CreateSpatialIndex('xmet_sounding', 'location');
|
CreateSpatialIndex('xmet_sounding', 'location');
|
||||||
|
|
||||||
|
@ -134,4 +137,6 @@ create table xmet_sounding_sample (
|
||||||
FOREIGN KEY (sounding_id) REFERENCES xmet_sounding (id)
|
FOREIGN KEY (sounding_id) REFERENCES xmet_sounding (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create index xmet_sounding_sample_sounding_id_idx on xmet_sounding_sample (sounding_id);
|
||||||
|
|
||||||
commit;
|
commit;
|
||||||
|
|
Loading…
Add table
Reference in a new issue