When an agreement is viewed in the Folio UI, we currently load the agreement lines through a call to /entitlements. The number of entitlements retrieved is based off the pageSize.agreements setting (in configuration). This was intended to enable tenants to control how many agreement lines were loaded and so ensure good performance even when an agreement had a large number of agreement lines
However, currently the entitlements are also included in the Agreements JSON returned by the call to /erm/sas/<agreement UUID> - and this includes all the agreement lines
So the work being done by the system has not changed - when a user views an agreement the system still ends up loading all agreement lines for that agreement, including fetches to eHoldings in cases of remote resources.
We should avoid loading the full set of agreement lines for an agreement unless we explicitly need to.