Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-10612

Optimize migration script org.ametys.plugins.cms.upgrade v20201030T000000

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 4.4.0
    • 4.4.0
    • None
    • None
    • 4.4 M6

      In the CMS plugin, the migration script file org.ametys.plugins.cms.upgrade/v20201030T000000-CMS-10565.js must be optimized. Indeed, when you have a lot of complex contents with multiple concerned fields, it can take a very very long time to execute.

      Also, add logs to inform the user.

      Ways to optimize:

      • Get all richtext in repeater attributes path from the model before iterating on contents with the content type - Then explore contents in details only on these paths
      • Prepare the SAX Factory only once and call saxFactory.newTransformer() each time you use it
      • Close the StringReader
      • Before applying the XSL, maybe we can detect the word local into the rich-text but I'm not sure it works well

            bmaurel Bérénice Maurel
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: