Affects Version/s: 6.2.10 EE GA1, 6.2.X EE
1. Use the MySQL DB dump on https://drive.google.com/a/liferay.com/file/d/0Bw8n1loL1fHjMzlOR0g4UXpBWms/view?usp=sharing
It is a DB put together with the aid of the Data Manipulator plugin in order to emulate an environment with a lot of DL folders and files.
2. Create a web content structure with a documents and media field.
3. Create a simple template to associate with the structure.
3. Create a web content, selecting the structure.
4. Browse the document and media by clicking on the Select button.
Result: The pop-up window opens, but it takes from 10 to 15 seconds for the first 20 pages to load.
Expected: it should load much much faster
The DLAppServiceUtil.getFoldersFileEntriesCount can take quite long depending on the files contained in the counted folders