refactoring lead to a successful run. However, when running from my home computer, the insight update took approx. 25 minutes. We should add some benchmarking features tomorrow and get a better sense of how long runs actually take.

master
dtookey 4 years ago
parent e5924caefc
commit f7b56120ea

@ -53,8 +53,12 @@ func (c *ConnectorGeneric) ExecuteSqlScript(runner *sqlScriptRunner) {
}
}
// startConnection this initializes, caches, and returns a connection for the desired database
// startConnection this initializes, caches, and returns a connection for the desired database. If a connection already exists,
// it will be terminated and a new connection will be opened.
func (c *ConnectorGeneric) startConnection(dataBase string) {
if c.cachedConnection != nil {
c.returnConnection()
}
db := createDbConnection(dataBase)
c.cachedConnection = db
}

@ -52,7 +52,7 @@ func (ic *Interconnect) UpdateTimeEntries() {
coroutineCount--
log.Printf("Currently pending goroutines: %d\n", coroutineCount)
}
ic.InsightDBConnector.ExecuteSqlScript(db.NewRunner("insight", "create-insight-contribution-table.sql"))
ic.InsightDBConnector.ExecuteSqlScript(db.NewRunner("create-insight-contribution-table.sql", "insight"))
}
//</editor-fold>

Loading…
Cancel
Save