Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.0.X EE, Master
-
7.0.x
-
Committed
-
3
Description
Reproduction steps:
- Create 4000 users
- Run the below groovy script (change 20156 to the userId of the user with which you are logged in)
import com.liferay.social.kernel.service.SocialRelationLocalServiceUtil; import com.liferay.portal.kernel.service.UserLocalServiceUtil; import com.liferay.portal.kernel.dao.orm.QueryUtil; List users =UserLocalServiceUtil.getUsers(2, 4001); for (user in users) { long idu = user.getUserId(); SocialRelationLocalServiceUtil.addRelation(20156, idu, 12); }
- Add the Microblogs portlet to a page
- Refresh the page
Experienced behavior: In this case the user has 4000 connections and the page is loaded in about 14 seconds
Expected behavior: Rendering the portlet shouldn't take this much time
Loading the page takes even more time if the user has more connections.