Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/unreleased/40633
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Add index on oc_filecache

This index can help to speed-up bulk file operations.

https://github.com/owncloud/core/issues/40633
17 changes: 17 additions & 0 deletions core/Migrations/Version20230210073645.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
namespace OC\Migrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Schema\SchemaException;
use OCP\Migration\ISchemaMigration;

class Version20230210073645 implements ISchemaMigration {
/**
* @throws SchemaException
*/
public function changeSchema(Schema $schema, array $options): void {
$prefix = $options['tablePrefix'];
$table = $schema->getTable("{$prefix}filecache");
$table->addIndex(['parent', 'storage', 'size'], 'fs_parent_storage_size');
}
}
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
// We only can count up. The 4. digit is only for the internal patchlevel to trigger DB upgrades
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
// when updating major/minor version number.
$OC_Version = [10, 12, 0, 1];
$OC_Version = [10, 12, 0, 2];

// The human-readable string
$OC_VersionString = '10.12.0 prealpha';
Expand Down