Project

General

Profile

1 10935 aaronmk
SELECT util.search_path_append('util');
2
3 11095 aaronmk
SELECT create_if_not_exists($$CREATE INDEX $$||:table_str||%'__parent'||$$ ON $$||:table_str||$$ ("taxonOccurrenceID__overall_plot")$$); -- runtime: 2 s ("Time: 1766.315 ms") @starscream
4 10935 aaronmk
5 11007 aaronmk
6 10935 aaronmk
SELECT mk_derived_col((:table_str, 'aggregateOrganismObservationID'),
7 10943 aaronmk
$$_join("aggregateOrganismObservationID__taxon_presence"::text, "aggregateOrganismObservationID__individual_count"::text)$$)
8 10935 aaronmk
; -- runtime: 15 s ("Time: 15805.876 ms") @starscream
9 10992 aaronmk
10
11
SELECT create_if_not_exists($$ALTER TABLE $$||:table_str||$$ ADD PRIMARY KEY ("aggregateOrganismObservationID")$$); -- runtime: 20 s ("Time: 20194.932 ms") @starscream