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

Many, many calls to fetch a single article

    Details

    • Fix Priority:
      3

      Description

      IN building a hook/module for overriding JournalArticleLocalServiceWrapper, I traced what was actually happening when an article is retrieved. I have one article on a page, and I loaded the page. Below is the System.out from getting the one article - that seems like there is a lot of work happening for getting one article. Is this correct? (the 37842 is my article id). You can see all the methods called, sometime multiple times in a row.

      036 - fetchLatestArticle(long groupId, String articleId, int status)
      37842
      050 - getArticle(long groupId, String articleId)
      37842
      050 - getArticle(long groupId, String articleId)
      37842
      037 - fetchLatestArticle(long resourcePrimKey)
      37842
      034 - fetchJournalArticle(long id)
      037 - fetchLatestArticle(long resourcePrimKey)
      37842
      040 - fetchLatestArticle(long resourcePrimKey, int[] statuses)
      37842
      040 - fetchLatestArticle(long resourcePrimKey, int[] statuses)
      37842
      050 - getArticle(long groupId, String articleId)
      37842
      050 - getArticle(long groupId, String articleId)
      37842
      036 - fetchLatestArticle(long groupId, String articleId, int status)
      37842
      050 - getArticle(long groupId, String articleId)
      37842
      040 - fetchLatestArticle(long resourcePrimKey, int[] statuses)
      37842
      040 - fetchLatestArticle(long resourcePrimKey, int[] statuses)
      37842
      040 - fetchLatestArticle(long resourcePrimKey, int[] statuses)
      37842
      040 - fetchLatestArticle(long resourcePrimKey, int[] statuses)
      37842
      040 - fetchLatestArticle(long resourcePrimKey, int[] statuses)
      37842
      040 - fetchLatestArticle(long resourcePrimKey, int[] statuses)
      37842
      040 - fetchLatestArticle(long resourcePrimKey, int[] statuses)
      37842
      040 - fetchLatestArticle(long resourcePrimKey, int[] statuses)
      37842
      050 - getArticle(long groupId, String articleId)
      37842
      036 - fetchLatestArticle(long groupId, String articleId, int status)
      37842
      034 - fetchJournalArticle(long id)
      033 - fetchDisplayArticle(long groupId, String articleId)
      040 - fetchLatestArticle(long resourcePrimKey, int[] statuses)
      37842
      37842
      040 - fetchLatestArticle(long resourcePrimKey, int[] statuses)
      37842
      050 - getArticle(long groupId, String articleId)
      37842

        Attachments

          Activity

            People

            Assignee:
            pavel.savinov Pavel Savinov (Inactive)
            Reporter:
            barrie Barrie Selack
            Participants of an Issue:
            Recent user:
            Marta Elicegui
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 49 weeks, 1 day ago

                Packages

                Version Package