Skip to content

VSB-TUO/Health report item summary#1133

Merged
milanmajchrak merged 2 commits intocustomer/vsb-tuofrom
vsb-tuo/health-report-item-summary
Oct 30, 2025
Merged

VSB-TUO/Health report item summary#1133
milanmajchrak merged 2 commits intocustomer/vsb-tuofrom
vsb-tuo/health-report-item-summary

Conversation

@Paurikova2
Copy link
Collaborator

Phases MP MM MB MR JM Total
ETA 0 0 0 0 0 0
Developing 0.5 0 0 0 0 0
Review 0 0 0 0 0 0
Total - - - - - 0
ETA est. 0
ETA cust. - - - - - 0

Problem description

There was a SELECT statement that used NOT NULL. In that case, the left side returned 555,375 results and the right side 643,715 results, so there were more than 357 billion comparisons.

@Paurikova2 Paurikova2 changed the title used not exists instead of not null| VSB-TUO/Health report item summary Oct 28, 2025
@milanmajchrak milanmajchrak requested a review from Copilot October 30, 2025 13:28
@milanmajchrak milanmajchrak merged commit 3045281 into customer/vsb-tuo Oct 30, 2025
16 checks passed
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 refactors the countWithNoPolicy query in BitstreamDAOImpl to use a NOT EXISTS clause instead of NOT IN for better performance and readability.

Key Changes:

  • Replaced NOT IN subquery with NOT EXISTS correlated subquery
  • Improved query formatting and readability with multi-line string concatenation
  • Added proper join condition using res.dSpaceObject.id = bit.id instead of selecting res.dSpaceObject

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

Paurikova2 added a commit that referenced this pull request Nov 5, 2025
* used not exists instead of not null|

* used id of dspace object
milanmajchrak pushed a commit that referenced this pull request Nov 18, 2025
* used not exists instead of not null|

* used id of dspace object
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.

3 participants