Revision 11749
Added by Aaron Marcuse-Kubitza about 11 years ago
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||$$ ("OBSERVATION_ID")$$); -- runtime: 1 s ("795.083 ms") @starscream
|
|
3 |
SELECT create_if_not_exists($$CREATE INDEX $$||:table_str||%'_parent'||$$ ON $$||:table_str||$$ ("eventID")$$); -- runtime: 1 s ("795.083 ms") @starscream
|
|
4 | 4 |
|
5 | 5 |
|
6 | 6 |
UPDATE :table SET |
7 |
denorm_kingdom = "Kingdom"
|
|
8 |
WHERE denorm_kingdom != "Kingdom"/*implies both NOT NULL*/ -- applies to 1 row (PLANTCONCEPT_ID 92372)
|
|
7 |
kingdom = "DUPLICATE#of:denorm_kingdom#Kingdom"
|
|
8 |
WHERE kingdom != "DUPLICATE#of:denorm_kingdom#Kingdom"/*implies both NOT NULL*/ -- applies to 1 row (**PLANTCONCEPT_ID 92372)
|
|
9 | 9 |
; -- rerun time: 0.5 s ("710.176 ms") @starscream; runtime: 2 s ("2211.789 ms") @starscream |
10 | 10 |
|
11 | 11 |
UPDATE :table SET |
12 |
denorm_genus = trim(denorm_genus, '{}') -- applies to 6 rows
|
|
13 |
WHERE denorm_genus LIKE '{%}' -- applies to 6 rows
|
|
12 |
genus_main = trim(genus_main, '{}') -- applies to 6 rows
|
|
13 |
WHERE genus_main LIKE '{%}' -- applies to 6 rows
|
|
14 | 14 |
; -- rerun time: 0.5 s ("492.670 ms") @starscream; runtime: 0.5 s ("543.942 ms") @starscream |
Also available in: Unified diff
inputs/CVS/: switched to new-style import, using the steps at http://wiki.vegpath.org/Adding_new-style_import_to_a_datasource