Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-50579

Low performance for saving an structure if it's related to a huge number of contents with several versions

    Details

      Description

      Steps to reproduce:

      1. Create an structure.
      2. Create a template linked to that structure.
      3. Create for example 3000 web contents with 30 versions (9000 journal articles in total) per each one using that structure.
      4. Go to manage structures, open the structure previously created and save.

      It will take a long time to save the structure (even hours)

      TECHNICAL NOTE
      The reason for the bad performance is that any time we save a structure we reindex the articles related to it, so 9000 indexations in total. However there is a bug whereby when we are going to index a journal article version we take all its versions so, for the last example, we perform 30 * 30 = 900 indexations per web content so, 900 * 3000 = 2.700.000 indexations in total.

      WORKAROUND
      The following issue mitigates the problem:
      https://issues.liferay.com/browse/LPS-48407

        Attachments

        1. check_time_forSavingAnStructure6.2.txt
          0.4 kB
        2. create_article_versions6.2.txt
          2 kB
        3. fixed.png
          fixed.png
          17 kB
        4. fixed62.png
          fixed62.png
          19 kB
        5. LPS-50579_1.txt
          4 kB
        6. reproduced.png
          reproduced.png
          14 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 21 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M2