Skip to content

[stable30] perf(sharing): Use oc_share.item_type IN instead of OR equals - #51692

Merged
provokateurin merged 1 commit into
stable30from
backport/51669/stable30
Mar 27, 2025
Merged

[stable30] perf(sharing): Use oc_share.item_type IN instead of OR equals#51692
provokateurin merged 1 commit into
stable30from
backport/51669/stable30

Conversation

@backportbot

@backportbotbackportbotBot commented Mar 25, 2025

Copy link
Copy Markdown

Backport of #51669

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbotbackportbotBot added this to the Nextcloud 30.0.9 milestone Mar 25, 2025
@marcelklehr
marcelklehrforce-pushed the backport/51669/stable30 branch 2 times, most recently from 2c65e6f to 1db2f15CompareMarch 27, 2025 11:00
@marcelklehr
marcelklehr marked this pull request as ready for review March 27, 2025 11:01
…equals
to improve performance by using the db index
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
@marcelklehr
marcelklehrforce-pushed the backport/51669/stable30 branch from 1db2f15 to 1f0241fCompareMarch 27, 2025 11:01
@provokateurin
provokateurin merged commit 85fa32a into stable30Mar 27, 2025
@provokateurin
provokateurin deleted the backport/51669/stable30 branch March 27, 2025 13:31
@marcelklehr

Copy link
Copy Markdown
Member

🎉

$qb->expr()->eq('share_type', $qb->createNamedParameter(\OCP\Share\IShare::TYPE_REMOTE_GROUP))
)
);
->where($qb->expr()->eq('share_type', $qb->createNamedParameter([IShare::TYPE_REMOTE, IShare::TYPE_REMOTE_GROUP], IQueryBuilder::PARAM_INT_ARRAY)));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This eq should be in.

This is what breaks the performance job on stable30 PRs !

@AltahrimAltahrim mentioned this pull request Apr 3, 2025
5 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsperformance 🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@marcelklehr@provokateurin@come-nc