Skip to content

UFAL/Health report item summary#1147

Merged
milanmajchrak merged 1 commit intodtq-devfrom
ufal/cherrypick-health-report-item-summary
Nov 18, 2025
Merged

UFAL/Health report item summary#1147
milanmajchrak merged 1 commit intodtq-devfrom
ufal/cherrypick-health-report-item-summary

Conversation

@Paurikova2
Copy link
Collaborator

  • used not exists instead of not null|

  • used id of dspace object

Cherry-picked from VSB-TUO to improve the performance of the health report item summary.

* used not exists instead of not null|

* used id of dspace object
@Paurikova2 Paurikova2 self-assigned this Nov 5, 2025
@Paurikova2 Paurikova2 linked an issue Nov 5, 2025 that may be closed by this pull request
@Paurikova2 Paurikova2 requested a review from Copilot November 5, 2025 09:43
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR optimizes a database query in the health report item summary by replacing a NOT IN subquery with a more efficient NOT EXISTS pattern and using the object ID instead of the full object reference for comparison.

Key Changes:

  • Replaced NOT IN with NOT EXISTS subquery pattern for better query performance
  • Changed comparison from res.dSpaceObject to res.dSpaceObject.id for direct ID comparison

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@milanmajchrak milanmajchrak merged commit 0a52e74 into dtq-dev Nov 18, 2025
15 checks passed
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.

UFAL/Health report performance

4 participants