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

    • 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

            pavel.savinov Pavel Savinov (Inactive)
            barrie Barrie Selack
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              5 years, 37 weeks, 3 days ago

              Packages

                Version Package