Skip to content

perf(tags): reduce repeated query setup in hot loops#61856

Draft
joshtrichards wants to merge 2 commits into
masterfrom
jtr/perf-Tags-getTagsForObjects
Draft

perf(tags): reduce repeated query setup in hot loops#61856
joshtrichards wants to merge 2 commits into
masterfrom
jtr/perf-Tags-getTagsForObjects

Conversation

@joshtrichards

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

Reduce a bit of repeated query setup and parameter binding in OC\Tags.

  • bind the invariant uid and type parameters once in getTagsForObjects(); loop only updates the chunk parameter
  • reuse a single relation-insert query builder in save()
  • bind the invariant relation type parameter once in save(); the loop only updates objid and categoryid

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant