Improved performance of comment searching
This commit is contained in:
parent
4578f7a7a4
commit
a55bd7686c
2 changed files with 13 additions and 0 deletions
12
src/Upgrades/Upgrade28.php
Normal file
12
src/Upgrades/Upgrade28.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
namespace Szurubooru\Upgrades;
|
||||
use Szurubooru\DatabaseConnection;
|
||||
|
||||
class Upgrade28 implements IUpgrade
|
||||
{
|
||||
public function run(DatabaseConnection $databaseConnection)
|
||||
{
|
||||
$pdo = $databaseConnection->getPDO();
|
||||
$pdo->exec('CREATE INDEX idx_comments_postId ON comments(postId)');
|
||||
}
|
||||
}
|
|
@ -43,6 +43,7 @@ return [
|
|||
$container->get(\Szurubooru\Upgrades\Upgrade25::class),
|
||||
$container->get(\Szurubooru\Upgrades\Upgrade26::class),
|
||||
$container->get(\Szurubooru\Upgrades\Upgrade27::class),
|
||||
$container->get(\Szurubooru\Upgrades\Upgrade28::class),
|
||||
];
|
||||
}),
|
||||
|
||||
|
|
Loading…
Reference in a new issue