* [perf] Move getDatabaseCharsetAndCollation() call outside the foreach loop to improve performance.
This commit is contained in:
@@ -123,8 +123,9 @@ class installModel extends model
|
||||
{
|
||||
$this->dbh->useDB($this->config->db->name);
|
||||
|
||||
$dbFile = $this->app->getAppRoot() . 'db' . DS . 'zentao.sql';
|
||||
$tables = explode(';', file_get_contents($dbFile));
|
||||
$dbCharset = $this->dbh->getDatabaseCharsetAndCollation($this->config->db->name);
|
||||
$dbFile = $this->app->getAppRoot() . 'db' . DS . 'zentao.sql';
|
||||
$tables = explode(';', file_get_contents($dbFile));
|
||||
|
||||
foreach($tables as $table)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user