GeoZac / unconv_spring

0 stars 1 forks source link

Cap pageSize argument on paged requests #526

Closed GeoZac closed 1 week ago

GeoZac commented 2 weeks ago

If the pageSize argument in paged requests is not properly capped, it can lead to excessive memory usage, especially in environments with limited resources.

When a user requests a large pageSize, the system attempts to load more data into memory at once. This can cause the application to run out of memory, potentially leading to crashes or degraded performance.

In such cases, it is crucial to cap the pageSize to avoid overwhelming the system and ensure stable operation.

Thanks to @jernicroy for bring this to my attention.