Skip to content

Conversation

@JohannesGGE
Copy link
Contributor

Summary

Remove index cards_abid because cards_abiduri already contains the column on the first position.

TODO

  • ...

Checklist

@JohannesGGE JohannesGGE added bug 3. to review Waiting for reviews performance 🚀 feature: carddav Related to CardDAV internals labels Feb 4, 2024
@JohannesGGE JohannesGGE self-assigned this Feb 4, 2024

$tableCards = $schema->getTable('cards');

if ($tableCards->hasIndex('cards_abid')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if ($tableCards->hasIndex('cards_abid')) {
if ($tableCards->hasIndex('cards_abiduri')) &&
($tableCards->hasIndex('cards_abid')) {

Maybe double check?

@JohannesGGE JohannesGGE force-pushed the fix/43118/remove-redundant-index branch 2 times, most recently from 5a83555 to c664339 Compare February 5, 2024 11:21
Copy link
Member

@st3iny st3iny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Feb 14, 2024
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment out the index creation in \OCA\DAV\Migration\Version1004Date20170924124212::changeSchema to avoid creating and dropping the index for new installations

@ChristophWurst ChristophWurst added 3. to review Waiting for reviews and removed 4. to release Ready to be released and/or waiting for tests to finish labels Feb 14, 2024
@JohannesGGE JohannesGGE force-pushed the fix/43118/remove-redundant-index branch from c664339 to 631f2b4 Compare February 18, 2024 19:52
@st3iny st3iny dismissed ChristophWurst’s stale review February 23, 2024 09:44

Has been addressed.

@st3iny st3iny merged commit 3814ef6 into master Feb 23, 2024
@st3iny st3iny deleted the fix/43118/remove-redundant-index branch February 23, 2024 09:44
@st3iny st3iny added this to the Nextcloud 29 milestone Feb 23, 2024
@blizzz blizzz mentioned this pull request Mar 5, 2024
kesselb added a commit that referenced this pull request Mar 19, 2024
Follow up for #43340

Signed-off-by: Daniel Kesselberg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug feature: carddav Related to CardDAV internals performance 🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Redundant oc_cards.cards_abid index

6 participants