dever 3 years ago
parent
commit
a677a1aedf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      config/env/localhost/default.php

+ 1 - 1
config/env/localhost/default.php

@@ -38,7 +38,7 @@ $local = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $ip;
 $config['database'] = array
 (
     # 是否开启mysql自助优化功能,开启后,会记录所有where条件和order的字段,可以方便的在后台进行分析、增加索引,必须安装manage组件
-    //'opt' => true,
+    'opt' => true,
 
     # 是否开启sql自动优化,将sql中的select * 转换为 select a,b形式,将sql中的where条件按照索引从左到右自动排序,必须打开上述的opt选项,数据量大时建议打开。
     //'sqlOp' => true,