Revision 11007
Added by Aaron Marcuse-Kubitza over 11 years ago
inputs/VegBank/stemcount_/postprocess.sql | ||
---|---|---|
1 | 1 |
SELECT util.search_path_append('util'); |
2 | 2 |
|
3 |
SELECT create_if_not_exists($$CREATE INDEX $$||:table_str||%'__parent'||$$ ON $$||:table_str||$$ ("taxonOccurrenceID")$$); -- runtime: 2 s ("Time: 1766.315 ms") @starscream |
|
3 | 4 |
|
5 |
|
|
4 | 6 |
SELECT mk_derived_col((:table_str, 'aggregateOrganismObservationID'), |
5 | 7 |
$$_join("aggregateOrganismObservationID__taxon_presence"::text, "aggregateOrganismObservationID__individual_count"::text)$$) |
6 | 8 |
; -- runtime: 15 s ("Time: 15805.876 ms") @starscream |
7 | 9 |
|
8 | 10 |
|
9 | 11 |
SELECT create_if_not_exists($$ALTER TABLE $$||:table_str||$$ ADD PRIMARY KEY ("aggregateOrganismObservationID")$$); -- runtime: 20 s ("Time: 20194.932 ms") @starscream |
10 |
|
|
11 |
SELECT create_if_not_exists($$CREATE INDEX $$||:table_str||%'__parent'||$$ ON $$||:table_str||$$ ("taxonOccurrenceID")$$); -- runtime: 2 s ("Time: 1766.315 ms") @starscream |
Also available in: Unified diff
inputs/VegBank/stemcount_/postprocess.sql: moved stemcount___parent index before the derived columns section because it does not depend on them