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

All ratings entries of the entire portal are included when exporting any specific site

    Details

      Description

      1. Create 10000 blogs and ratings entries by running the attached Groovy script
      2. Create a new site "testsite"
      3. Manually export the completely empty testsite with default options

      Result: The export of the empty site takes about 4 minutes (depending on your machine's resources) because all the 10000 ratings will be exported also (the blog entries will not).

      The reason is that the RatingsEntry model does not have a groupId, and therefore PageRatingsPortletDataHandler will not be able filter them by the exported site's groupId when fetching the ones to export. Only the entities that they are rating have a groupId so we have to filter for that.

      Note: This anomaly affects site creation from site template also. E.g. creating a new site from the Intranet Site template takes about the same amount of time because of this unnecessary export and import, which also doesn't make any sense.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                summer.zhang Summer Zhang
                Reporter:
                gergely.mathe Gergely Mathe
                Participants of an Issue:
                Recent user:
                Csaba Turcsan
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 10 weeks, 6 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP21
                  7.0.0 DXP SP4
                  7.0.X EE
                  7.1.X
                  Master