Skip to content

Performance Fix for ‎UI5DataModels - #470

Open
mbaluda wants to merge 3 commits into
mainfrom
mbaluda-patch-1
Open

mbaluda wants to merge 3 commits into
mainfrom
mbaluda-patch-1

Conversation

@mbaluda

@mbaluda mbaluda commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

This pull request refactors how JSON model content is resolved for UI5 binding paths, improving code clarity and performance on certain database

Copilot AI balanced review requested due to automatic review settings November 7, 2026 15:30
@mbaluda mbaluda changed the title Performance Fix Performance Fix for ‎UI5DataModels Nov 7, 2026

Copilot AI left a comment

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.

🔵 Needs a closer look

The optimizer-dependent performance change needs query-plan and timing validation on the affected database plus UI5 regression testing, but CodeQL execution was unavailable in this review environment.

No open issues 🎉

What changed in this PR

Refactors UI5 JSON-file model resolution to improve query evaluation performance while preserving the existing binding-path logic.

Changes:

  • Extracts constructor URI resolution into a private noinline helper.
  • Moves JSON-file binding resolution into a separate noinline helper called by getModelNode.
File Description
javascript/​frameworks/​ui5/​lib/​advanced_security/​javascript/​frameworks/​ui5/​UI5DataModels.qll Isolates JSON-file resolution in two helpers to control inlining and improve performance.

Review effort: Balanced

@mbaluda
mbaluda marked this pull request as ready for review November 9, 2026 12:50
Inline model-name matching to retain receiver constraints and centralize explicit setModel checks in SetModelCall. Add focused call-recognition coverage using existing fixtures.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 9, 2026 14:08

This comment was marked as resolved.

@mbaluda
mbaluda requested review from a team and knewbury01 November 9, 2026 14:17
Copilot AI balanced review requested due to automatic review settings November 11, 2026 10:49

Copilot AI left a comment

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.

🔵 Needs a closer look

Unavailable unit-test and UI5 model/XSS regression results, along with representative database timings, leave the QL inlining/materialization changes’ correctness and performance benefits unverified.

No open issues 🎉

Review effort: Balanced

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants