Findings search / vulnerability audit performs pagination in-memory #4094
Labels
defect
Something isn't working
p2
Non-critical bugs, and features that help organizations to identify and reduce risk
performance
size/S
Small effort
Current Behavior
The findings search / global vulnerability audit logic performs pagination in-memory, instead of at part of the SQL query:
dependency-track/src/main/java/org/dependencytrack/persistence/FindingsSearchQueryManager.java
Lines 119 to 124 in 3837f0c
This means it loads everything into memory first, just to discard a big chunk of it immediately. This leads to poor performance on large portfolios and can even lead to
OutOfMemoryException
s.Steps to Reproduce
Expected Behavior
Pagination should happen in the database, using offset / limit clauses in the SQL query:
dependency-track/src/main/java/org/dependencytrack/persistence/QueryManager.java
Lines 1579 to 1599 in 3837f0c
Dependency-Track Version
4.12.0-SNAPSHOT
Dependency-Track Distribution
Container Image, Executable WAR
Database Server
N/A
Database Server Version
No response
Browser
N/A
Checklist
The text was updated successfully, but these errors were encountered: