[config] new parameter $cfg['Servers'][$i]['CountTables'] = true; set to false for speed improvements with many databases

This commit is contained in:
Sebastian Mendel
2008-01-29 14:12:05 +00:00
parent 10cf3d2c7d
commit 340584e504

View File

@@ -432,8 +432,11 @@ require_once './libraries/List.class.php';
if ($db['name'] == $selected) { if ($db['name'] == $selected) {
$return .= ' selected="selected"'; $return .= ' selected="selected"';
} }
$return .= '>' . htmlspecialchars($cut ? $db['disp_name_cut'] : $db['disp_name']) $return .= '>' . htmlspecialchars($cut ? $db['disp_name_cut'] : $db['disp_name']);
.' (' . $db['num_tables'] . ')</option>' . "\n"; if (! empty($db['num_tables'])) {
$return .= ' (' . $db['num_tables'] . ')';
}
$return .= '</option>' . "\n";
} }
if (count($dbs) > 1) { if (count($dbs) > 1) {
$return .= '</optgroup>' . "\n"; $return .= '</optgroup>' . "\n";