Skip to content

VSB-TUO/Fix bitstreamuuid query#1140

Merged
milanmajchrak merged 2 commits intocustomer/vsb-tuofrom
vsb-tuo/fix-bitstreamuuid-query
Nov 4, 2025
Merged

VSB-TUO/Fix bitstreamuuid query#1140
milanmajchrak merged 2 commits intocustomer/vsb-tuofrom
vsb-tuo/fix-bitstreamuuid-query

Conversation

@Paurikova2
Copy link
Collaborator

@Paurikova2 Paurikova2 commented Nov 4, 2025

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

Problem description

The HealthReport (LicenseCheck) fails when processing many bitstreams because the query in findByBitstreamUUIDs exceeds PostgreSQL’s 65,535 parameter limit.

@milanmajchrak Maybe changes from health report should be also in dtq-dev not only in customer/vsb-tuo

@Paurikova2 Paurikova2 requested a review from Copilot November 4, 2025 09:42
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 fixes a PostgreSQL parameter limit issue in the findByBitstreamUUIDs method that was causing HealthReport (LicenseCheck) failures when processing large numbers of bitstreams. The original implementation could exceed PostgreSQL's 65,535 parameter limit when querying with many UUID parameters.

  • Implements batch processing to split large UUID lists into smaller chunks
  • Uses a conservative batch size of 10,000 to stay well below PostgreSQL's parameter limit
  • Aggregates results from multiple batch queries to maintain the same API contract

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

@Paurikova2 Paurikova2 requested a review from Copilot November 4, 2025 09:52
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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


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

@milanmajchrak milanmajchrak merged commit 945e9cf into customer/vsb-tuo Nov 4, 2025
15 checks passed
Paurikova2 added a commit that referenced this pull request Nov 5, 2025
* revent PostgreSQL parameter limit error by batching bitstream UUID queries in findByBitstreamUUIDs

* BATCH_SIZE as configurable constant
milanmajchrak pushed a commit that referenced this pull request Nov 12, 2025
* VSB-TUO/Health report license summary (#1135)

* added select get bitstreams based on uuids, improved speed of run

* incorrect indentation, removed unused map, checkstyle

* VSB-TUO/Fix bitstreamuuid query (#1140)

* revent PostgreSQL parameter limit error by batching bitstream UUID queries in findByBitstreamUUIDs

* BATCH_SIZE as configurable constant
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.

3 participants