-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.X EE, 7.0.0 DXP SP2, Master
-
Fix Version/s: 7.0.0 DXP FP22, 7.0.0 DXP SP4, 7.0.X EE, 7.0.4 CE GA5, 7.1.X, Master
-
Branch Version/s:7.0.x
-
Backported to Branch:Committed
-
Story Points:1.5
-
Fix Priority:2
-
Git Pull Request:
Description
The BaseUpgradePortletId.upgradeResourcePermission process is inefficient. This is bad because this method gets called a lot during an upgrade to Liferay 7.
Steps to Reproduce
- Start up a fresh instance of Liferay 6.2 and log in as the admin user.
- Navigate to Control Panel > Configuration > Server Administration > Script
- Change the Language to Groovy and paste the contents of the attached addManyRolesAndMediaGalleryPermissions.groovy script into the Script box.
- Press the Execute button. This will cause a Media Gallery portlet to be added to the home page, and 500000 new roles to be created, each with their own resource permission for the Media Gallery portlet (Note: This script will take about 7 hours to complete).
- Shut down Liferay.
- Run the upgrade process to the version you are testing on on your database. Observe the length of time it takes to complete UpgradeImageGallery.
Expected Result: UpgradeImageGallery completes fairly quickly
Actual Result: UpgradeImageGallery takes a long time to complete
- relates
-
LPE-15636 Poor Performance in BaseUpgradePortletId.upgradeResourcePermission
-
- Open
-