You are here

protected function CleanerMySqlOptimizationController::optimizeIt in Cleaner 8

Perform the optimization query.

Parameters

string $query: Query string.

1 call to CleanerMySqlOptimizationController::optimizeIt()
CleanerMySqlOptimizationController::mysqlOptimize in src/Controller/CleanerMySqlOptimizationController.php
MySQL optimizer.

File

src/Controller/CleanerMySqlOptimizationController.php, line 115

Class

CleanerMySqlOptimizationController
Class CleanerMySqlOptimizationController.

Namespace

Drupal\cleaner\Controller

Code

protected function optimizeIt($query) {
  $this->connection
    ->query((string) $query)
    ->execute();
}