- Improved speed due to forced indexes when showing items.

- Possibility to setup a hostname
This commit is contained in:
Michael Vogel 2013-09-15 10:40:58 +02:00
parent 159a7bda85
commit d5ae5ecedd
8 changed files with 41 additions and 38 deletions

View file

@ -93,6 +93,8 @@ class dba {
$stamp2 = microtime(true);
$duration = (float)($stamp2-$stamp1);
$a->save_timestamp($stamp1, "database");
if(x($a->config,'system') && x($a->config['system'],'db_log')) {
if (($duration > $a->config["system"]["db_loglimit"])) {
$duration = round($duration, 3);
@ -168,7 +170,7 @@ class dba {
}
}
$a->save_timestamp($stamp1, "database");
//$a->save_timestamp($stamp1, "database");
if($this->debug)
logger('dba: ' . printable(print_r($r, true)));