Uploaded image for project: 'HTML Form Entry Module'
  1. HTML Form Entry Module
  2. HTML-696

Improve performance of loading forms that utilize concept mapping codes

    Details

    • Type: Enhancement
    • Status: Code Review (Post-Commit)
    • Priority: Should
    • Resolution: Unresolved
    • Affects Version/s: HTML Form Entry 3.8.0
    • Fix Version/s: HTML Form Entry 3.10.0
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      Recent analysis of loading html forms has found that when htmlforms reference concepts via mapping codes they load significantly slower than when they reference concept ids or uuids.   One example form that I loaded had the following characteristics:

      • Over 1000 calls to retrieve a Concept by Mapping
      • Time spent loading concepts by mapping approximately 48 seconds during form load

      A pull request has recently be issued against openmrs core to speed up the performance of the ConceptService.getConceptByMapping method, by introducing a Cache.  However, this still requires review and merging, and will only be available for those running core version 2.3+.

      This ticket aims to solve this issue within the htmlformentry module in order to achieve more immediate benefits across a broader range of base OpenMRS versions.

        Attachments

          Activity

            People

            • Assignee:
              mseaton Mike Seaton
              Reporter:
              mseaton Mike Seaton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: