Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-2671

Cache handlers in HandlerUtil

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.9.8, Platform 1.10.0, Platform 1.11.0, Platform 1.12.0
    • Component/s: None
    • Labels:
    • Complexity:
      Medium

      Description

      As seen in META-144, a lot of time is spent in overhead introduced by OpenMRS when you save something. Specifically it's RequiredDataAdvice.before, of which 85% is HandlerUtil.getHandlersForType. The bulk of this is actually from calls to Spring's getBeansOfType (which we can't touch). However we're calling that many times. We should consider caching the handlers in HandlerUtil, and clearing that cache whenever Spring is restarted.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              raff Rafal Korytkowski
              Reporter:
              jeremy Jeremy Keiper [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: