glamod / glamod-ingest

Database preparation and ingestion for GLAMOD
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

Make sure spatial index is "gist" #11

Closed agstephens closed 4 years ago

agstephens commented 4 years ago

E.g.

CREATE INDEX observations_1999_land_0_location_gist_idx ON lite.observations_1999_land_0 USING gist ( location );

Works better than btree index.

agstephens commented 4 years ago

Task is:

  1. Find where we create the spatial index in the cdm lite code, and replace it to use this new index.

    • need to apply to main table and all partitions
  2. Find where we create the spatial index for the full cdm code, and replace it.

    • need to apply to main table and all partitions
agstephens commented 4 years ago

They are all currently btree.

agstephens commented 4 years ago

Added make-indexes-sql.py and create-indexes.sql to the playbook - for CDMLite.

agstephens commented 4 years ago

Done for CDMLite.

agstephens commented 4 years ago

Done now for CDMFull.