Skip to content

Remove index on file_target of share table#17639

Merged
MorrisJobke merged 1 commit into
masterfrom
remove-file-target-index
Jul 15, 2015
Merged

Remove index on file_target of share table#17639
MorrisJobke merged 1 commit into
masterfrom
remove-file-target-index

Conversation

@MorrisJobke

Copy link
Copy Markdown
Contributor

Replaces #17626

cc @karlitschek @DeepDiver1975 @PVince81

* causes issues on InnoDB because it exceeds the maximal key length
  of an index which is 767 (3-byte charset * varchar(512) = 1536)
* fixes #17619
@MorrisJobke MorrisJobke added this to the 8.2-current milestone Jul 14, 2015
@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@DeepDiver1975

Copy link
Copy Markdown
Member

👍

@PVince81

Copy link
Copy Markdown
Contributor

👍

@karlitschek

Copy link
Copy Markdown
Contributor

unfortunately 👍
At some point in time we have to think about DB specific indexes. It is sad that we can't do a lot of optimizations.

@PVince81

Copy link
Copy Markdown
Contributor

The problem with files_target is that it is supposed to contain a full path.
Another approach would be to switch to using file ids for share targets, and have the mount points exist in the filecache table. See #14396

@ghost

ghost commented Jul 14, 2015

Copy link
Copy Markdown

🚀 Test PASSed.🚀
chuck

@DeepDiver1975

Copy link
Copy Markdown
Member

At some point in time we have to think about DB specific indexes. It is sad that we can't do a lot of optimizations.

We could have more fine granular access to the database schema using something like doctrine migrations.

On each migration step we could react individually on the database system allowing us to allow specific settings.

@karlitschek see #14851 for more details - happy to chat about the next steps

@karlitschek

Copy link
Copy Markdown
Contributor

Hmm. Looks very interesting and promising. :-)

MorrisJobke added a commit that referenced this pull request Jul 15, 2015
Remove index on file_target of share table
@MorrisJobke
MorrisJobke merged commit e46ec4a into master Jul 15, 2015
@MorrisJobke
MorrisJobke deleted the remove-file-target-index branch July 15, 2015 12:24
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OC 8.0.5 -> 8.1.0 -> master update key too long error with Mariadb

5 participants