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

Too slow to create a new web content with a Japanese title

    Details

      Description

      Background
      When a Web Content's title is entirely set in Japanese, its urlTitle is auto-generated as "-" (dash). If another Japanese content is created, a sequence number is appended to it "-1" and so on.

      Note
      Later versions (branch) does not use the dash anymore and uses its utf8 values.

      Issue
      Too slow to create a new web content with a Japanese title.

      Steps to reproduce

      1. Start a clean bundle
      2. Login
      3. Go to Server Administration > Script
      4. Run the attached "create_content.groovy" script. It will create 3000 web contents, all with the same Japanese-only title.
        (Change the parameters as required)
      5. Check the logs to see how long it takes to generate each content

      Actual results
      Time it takes to generate keeps increasing. The more articles exist, the longer it takes. Starts taking less than a second and ends up taking more than 7 seconds to create 1 single web content

      Expected results
      It should take less than a second

      Reproduced in
      7.0.x (c3aaaf072093c1b146e94460b31347541fdfd3a9)

      Not reproduced in
      master (37c4d1d3f68b4f590f4174bc1e6c4bc515fe45af) always takes a few miliseconds

        Attachments

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            il.kim Brian I. Kim
            Participants of an Issue:
            Recent user:
            Jason Pince
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              50 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 DXP FP93
                7.0.10.14 DXP SP14
                7.0.X