1 |
10943
|
aaronmk
|
#!/bin/bash -e
|
2 |
|
|
. "$(dirname "${BASH_SOURCE[0]}")"/../../lib/runscripts/datasrc_dir.run
|
3 |
11172
|
aaronmk
|
|
4 |
|
|
if self_not_included; then
|
5 |
|
|
|
6 |
12792
|
aaronmk
|
# `rm=1 import()` runtime: 1 h ("56m33.705s")
|
7 |
12786
|
aaronmk
|
# `datasrc_make sql/install` runtime: 25 min ("24m52.798s")
|
8 |
|
|
|
9 |
11175
|
aaronmk
|
refresh() # usage: on *vegbiendev*: .../run refresh
|
10 |
11172
|
aaronmk
|
{
|
11 |
12779
|
aaronmk
|
begin_target
|
12 |
11172
|
aaronmk
|
local remake=1 # run all commands below in this mode
|
13 |
|
|
datasrc_make vegbank.schema.sql
|
14 |
|
|
datasrc_make vegbank.data.sql # runtime: 3.5 min (":17:38" - ":14:16" =3:22)
|
15 |
|
|
datasrc_make vegbank.data.sql.gz # runtime: 2 min ("2m10.659s")
|
16 |
|
|
datasrc_make vegbank.data.sql.gz.md5 # runtime: 7 s ("0m6.630s")
|
17 |
|
|
import # runtime: *.sql: 20 min ("1201.18")
|
18 |
|
|
}
|
19 |
|
|
|
20 |
|
|
fi
|