mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fixup! perf(db): Extend jobs.time_sensitive index
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
7b0bcc1e17
commit
9cac577d55
2 changed files with 2 additions and 2 deletions
|
|
@ -194,7 +194,7 @@ class Application extends App {
|
|||
'jobs',
|
||||
['jobs_time_sensitive'],
|
||||
'jobs_sensitive_lastcheck_reserved',
|
||||
['time_sensitive', 'last_checked', 'reserved_at'],
|
||||
['last_checked', 'time_sensitive', 'reserved_at'],
|
||||
false,
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class Version24000Date20220131153041 extends SimpleMigrationStep {
|
|||
// jobs_time_sensitive replaced by jobs_sensitive_lastcheck_reserved
|
||||
// $table->addIndex(['time_sensitive'], 'jobs_time_sensitive');
|
||||
// Added later on (32 and backported)
|
||||
$table->addIndex(['time_sensitive', 'last_checked', 'reserved_at'], 'jobs_sensitive_lastcheck_reserved');
|
||||
$table->addIndex(['last_checked', 'time_sensitive', 'reserved_at'], 'jobs_sensitive_lastcheck_reserved');
|
||||
return $schema;
|
||||
}
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue