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

Fix VerifyJournal#verifyContentSearch logic and optimize performance

    Details

    • Branch Version/s:
      6.1.x
    • Backported to Branch:
      Committed
    • Story Points:
      3
    • Fix Priority:
      4

      Description

      7500 JournalContentSearches with the same portletId but different groupIds (site templates populating web content)
      2 JournalContentSearches with the same portletId and same groupId (bug fixed here: LPS-25746)

      Before-

      1. Grab portletIds of JournalContentSearch
      2. Query PortletPreferences with portletId, getting a list of "correct" 7501 correct articleIds (same portletId, groupId has one displayed article)
      3. Iterate 7501 times and updateContentSearch the same one over and over again with a different articleId, (whatever is returned by getArticleContentSearchesByPortletId(portletId) contentSearches.get(1))

      Result: 1 removed

      After-

      1. Grab groupId and preferences of entries with duplicate groupId and portletId (1 result)
      2. Grab articleId from preferences
      3. updateContentSearch once

      Result: 1 removed

        Attachments

          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, 31 weeks, 4 days ago