## Problem
We are experiencing performance issues in production with content migrated from another platform into Strapi.
Some folders contain a very large number of items, such as thousands of subfolders or images. For example, a single folder can contain 5,000+ subfolders.
Loading these collections at once can result in slow API responses, long loading times, high resource usage, and an unresponsive UI.
This can also become an issue with the new Media Library side menu, where a large folder structure may require loading a significant number of folders at once.
## Proposed solution
Add pagination when retrieving:
* Folders/subfolders within a folder
* Images/media items within a folder
* Folders displayed in the Media side menu