Adobe-Consulting-Services / acs-aem-commons

http://adobe-consulting-services.github.io/acs-aem-commons/
Apache License 2.0
454 stars 600 forks source link

OOTB users to CSV exports not working #3258

Open AndreaHgy opened 9 months ago

AndreaHgy commented 9 months ago

Required Information

Concerned path: Tools > ACS AEM Common > CSV Exporters > Users to CSV Exporter issue => We have the possibility to create specific exports to identify and extract users according to their role. This allows us to track activity on the platform.

When creating a report, we select the roles to be extracted. Then, report can be downloaded. => Lately we were creating a report, and selecting the roles to be extracted. Normally the report should be available then to download, but we are having a lot of lag issues, and the interface becomes unresponsive, and the browser pages stop to respond.

Do you know what the issue might be? Thank you!

image-2023-11-02-14-27-17-904
Cooper57138 commented 8 months ago

@YegorKozlov , is there a pressing need to perform this sort operation?

image

https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/bundle/src/main/java/com/adobe/acs/commons/exporters/impl/users/UsersExportServlet.java

This sorting is being done for every user record and with increasing number of users, it could contribute significantly to the performance overhead.

Cooper57138 commented 8 months ago

@AndreaHgy , any idea how many records we are trying to export here ?

mbenhlima commented 8 months ago

hello we have arround 213K users (active and not active users). But the export is working on PROD and not on stage environment (where the infrastructure is less performant). So can you confirm it's the root cause? and how can we debug it or be sure what the cause is?