1
|
#!/bin/bash -e
|
2
|
. "$(dirname "${BASH_SOURCE[0]}")"/../../lib/runscripts/datasrc_dir.run
|
3
|
|
4
|
if self_not_included; then
|
5
|
|
6
|
# `rm=1 import()` runtime: >1.5 h ("20:45:14" - "19:19:21" + ...)
|
7
|
# `datasrc_make sql/install` runtime: 25 min ("24m52.798s")
|
8
|
|
9
|
refresh() # usage: on *vegbiendev*: .../run refresh
|
10
|
{
|
11
|
begin_target
|
12
|
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
|