Uh oh!
There was an error while loading. Please reload this page.
Add index to properties table - #20716
Conversation
mario
commented
Apr 29, 2020
Would be awesome to get this in 19. |
mario
commented
Apr 29, 2020
This speeds up access to folders with lots of files considerably. |
mario
commented
Apr 29, 2020
I'm pretty sure the odd test failure is not related to me adding indexes. |
icewind1991
commented
Apr 29, 2020
is yours |
mario
commented
Apr 29, 2020
Thanks. |
gary-kim
left a comment
There was a problem hiding this comment.
I think you may have accidentally committed composer.phar?
mario
commented
Apr 29, 2020
Good catch, fixed. |
MorrisJobke
left a comment
There was a problem hiding this comment.
Please add to the check for the missing indices so that admins are notified about this:
Line 74 in cb05782
mario
commented
Apr 30, 2020
Fix pushed. |
mario
commented
Apr 30, 2020
So lint is complaining about lib/private/Files/ObjectStore/Swift.php which I didn't touch and I can't run composer run cs:fix because it errors out with: Fatal error: Uncaught Error: Class 'Nextcloud\CodingStandard\Config' not found in /Users/mario/Projects/server/.php_cs.dist:9 |
MorrisJobke
commented
Apr 30, 2020
It is already fixed in #20742 |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
mario
commented
Apr 30, 2020
@MorrisJobke thanks, fixed. Thanks to you and @icewind1991 for mentoring, and @gary-kim and @ChristophWurst of course! :) |
| use OCP\Migration\IOutput; | ||
| use OCP\Migration\SimpleMigrationStep; | ||
| class Version19000Date20200429140134 extends SimpleMigrationStep { |
There was a problem hiding this comment.
I just noticed that you want to do this in a migration. Then the step in the "add-missing-indices" is not needed. I guess we should not do the migration here (because it can take really long and thus break the update). Better is to put the addIndex() to an old migration, so that it is executed on new installs. And for existing installations we do the approach with the admin notification and the add-missing-indices command to add the index while the instance is online.
There was a problem hiding this comment.
@mario I just noticed that I had this as pending open. That's why I said that in the chat back then ;)
There was a problem hiding this comment.
What migration do you want me to put it in @MorrisJobke ?
There was a problem hiding this comment.
Right below that line I would say:
(it's the only migration for preferences in core)There was a problem hiding this comment.
Just for reference - that's how we did it for other indices as well: https://github.com/nextcloud/server/pull/13213/files
There was a problem hiding this comment.
You just confused the hell out of me - I hope you meant few lines further where the migration for properties is, and not preferences? :D
There was a problem hiding this comment.
This is for preferences, I need it for properties :P But found it, thanks!
There was a problem hiding this comment.
Ah yes - sorry. Far better now 👍
Signed-off-by: Mario Danic <mario@lovelyhq.com>
mario
commented
Apr 30, 2020
Let's hope its good now :p |
dennisTGC
commented
Jun 9, 2020
Will this be back-ported to a minor v18 release? |
Signed-off-by: Mario Danic mario@lovelyhq.com