Slow Publishing and Import Time for Site When Permissions Are Included in the LAR file

When a site has many roles and permissions, publishing the site will be significantly slower when the permissions are included in the import. Please see the following steps to reproduce for more details:


  1. Create two sites called 'Original' and 'Import'
  2. Create 80+ roles to be used between both sites.
  3. Navigate to the 'Original' site.
    • create 20+ pages
    • for each page, add 15 portlets
    • for each portlet, configure permissions to include 80+ of the created roles.
  4. Navigate to the 'Original' Site Pages in Control Panel. Export LAR.
    • ensure that 'Permissions' checkbox is checked. Child option should also be selected.
  5. Navigate to the 'Import' Site Pages in Control Panel.
  6. Import LAR w/o 'Permissions' - New Pages should be created.
    • Behavior: Import takes a few seconds.
  7. Re-Import LAR w/o 'Permissions' selected.
    • Behavior: Import time is slightly shorter, and roughly the same amount of time.
  8. Import LAR WITH 'Permissions' selected.
    • Behavior: Import time is significantly longer than the previous scenario.
  9. Re-Import LAR WITH 'Permissions'
    • Behavior: Import time is still increased, but slightly shorter than initial permissions import.

Please contact Liferay Support regarding the solution included on LPS-34190 that addresses this issue.

Additional Information

0 人中有 0 人觉得有帮助