Impact Area
Performance
Severity
High
Affected Element
Apex Class
SF-AVOID-SIZE-IN-SOQL
Load large collections with SOQL in order to get total count using size() increase memory usage doing a negative impact in performance.
Use count() SOQL function in your query instead size() method in SOQL output list.
Time to fix
15 min
Name: *
Email: *
Message: *
THE AI CODE GOVERNANCE BRIEF