1 |
11979
|
aaronmk
|
#!/bin/bash -e
|
2 |
|
|
# **WARNING**: this datasource is not yet new-style, so most runscript commands
|
3 |
|
|
# won't work
|
4 |
|
|
# **IMPORTANT**: rename this file to `run` after switching to new-style import
|
5 |
|
|
. "$(dirname "${BASH_SOURCE[0]}")"/../../lib/runscripts/datasrc_dir.run
|
6 |
|
|
|
7 |
|
|
if self_not_included; then
|
8 |
|
|
|
9 |
11981
|
aaronmk
|
# *.sql install runtime: 3 min ("181.21") @starscream
|
10 |
|
|
|
11 |
13124
|
aaronmk
|
# `make inputs/SALVIAS/validate` runtime: 7 min ("416341 ms") @vegbiendev
|
12 |
13125
|
aaronmk
|
# slow queries: _plots_06a_list_of_stems
|
13 |
13068
|
aaronmk
|
|
14 |
11979
|
aaronmk
|
refresh() # usage: .../run refresh
|
15 |
|
|
{
|
16 |
|
|
echo_func; set_make_vars
|
17 |
|
|
unexport data schema # these have special meaning to the invoked commands
|
18 |
|
|
local remake=1 # run all commands below in this mode
|
19 |
|
|
datasrc_make _MySQL/salvias_plots.{schema,data}.sql
|
20 |
11980
|
aaronmk
|
# runtime: 25 s ("0m25.331s") @starscream
|
21 |
|
|
datasrc_make salvias_plots.{schema,data}.sql
|
22 |
|
|
# runtime: 30 s ("0m30.974s") @starscream
|
23 |
|
|
remake= datasrc_make reinstall # runtime: 3.5 min ("3m33.014s") @starscream
|
24 |
11979
|
aaronmk
|
#**IMPORTANT**: change this to `import` after switch to new-style import
|
25 |
|
|
}
|
26 |
|
|
|
27 |
|
|
fi
|