code: public function optimize()
      {
          $list = array_map('array_change_key_case', Db::query('SHOW TABLE STATUS'));
          foreach ($list as $vo) {
              Db::query('OPTIMIZE TABLE `' . $vo['name'] . '`');
          }
      }
docs: 优化表