Project

General

Profile

1 11267 aaronmk
SELECT util.search_path_append('util');
2
3 11749 aaronmk
SELECT create_if_not_exists($$CREATE INDEX $$||:table_str||%'_parent'||$$ ON $$||:table_str||$$ ("eventID")$$); -- runtime: 1 s ("795.083 ms") @starscream
4 11740 aaronmk
5
6 11267 aaronmk
UPDATE :table SET
7 11749 aaronmk
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 11267 aaronmk
; -- rerun time: 0.5 s ("710.176 ms") @starscream; runtime: 2 s ("2211.789 ms") @starscream
10 11269 aaronmk
11
UPDATE :table SET
12 11749 aaronmk
genus_main = trim(genus_main, '{}') -- applies to 6 rows
13
WHERE genus_main LIKE '{%}' -- applies to 6 rows
14 11269 aaronmk
; -- rerun time: 0.5 s ("492.670 ms") @starscream; runtime: 0.5 s ("543.942 ms") @starscream
15 11809 aaronmk
16
17
SELECT mk_derived_col((:table_str, 'identifiedBy'),
18
$$_join_words("identifiedBy__first", "identifiedBy__middle", "identifiedBy__last")$$)
19
; -- runtime: 15 s ("14351.532 ms") @starscream