Uh oh!
There was an error while loading. Please reload this page.
Add index to share_with column in the share table - #7517
Conversation
| use Symfony\Component\Console\Input\InputInterface; | ||
| use Symfony\Component\Console\Output\OutputInterface; | ||
| class AddIndexToShareTable extends Command { |
There was a problem hiding this comment.
Can't we do it more generic? Like have an "create indexes" occ command. We list all the indexes that need to be added here. And just check if there already is one. If so we skip. If not we add it?
That way we can easily add more indexes later. instead of having multiple different commands (because there are some still missing I bet).
There was a problem hiding this comment.
sounds good, I will name it more generic
Codecov Report
@@ Coverage Diff @@## master #7517 +/- ##
============================================
- Coverage 51.18% 51.17% -0.02% - Complexity 24874 24881 +7
============================================
Files 1601 1602 +1 Lines 94701 94726 +25 Branches 1368 1368 ============================================
- Hits 48474 48473 -1 - Misses 46227 46253 +26
|
371bb26 to
c64884eCompareSigned-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
0298fe1 to
21489d5Comparerullzer
commented
Dec 18, 2017
I rebased on master. |
rullzer
left a comment
There was a problem hiding this comment.
Makes a lot of sense!
Works like a charm here.
Add a index to share_with. This should improve the performance quite a bit as we need to query all shares with a specific user every time we set up the file system.
For updating existing instances I created a occ script instead of a automated update step because this can take quite some time for large installation.