You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when clients (like the visualizer) pass large pkgIDs arrays directly to queryPackagesListForScan, the backend still tries to query all IDs at once
PostgreSQL's parameter limit is 65,535
Each UUID in IDIn() counts as one parameter
The issue manifests when pkgIDs array > ~60,000 items
Describe the bug
When using the visualizer (v0.4.10) with large datasets,
queryPackagesListForScanfails with the following error:This occurs when the GraphQL endpoint receives a large list of package IDs that need to be queried from the PostgreSQL backend.
To Reproduce
queryPackagesListForScanwith a largepkgIDsarrayWhere(packageversion.IDIn(shortenedQueryList...))shortenedQueryListexceeds ~65,000 UUIDsExpected behavior
The query should succeed by automatically batching large ID lists internally to stay within PostgreSQL's parameter limits.
Screenshots
N/A
GUAC version
Additional context
findPackagesThatNeedScanningandqueryPackagesListForScanpkgIDsarrays directly toqueryPackagesListForScan, the backend still tries to query all IDs at onceIDIn()counts as one parameter