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

Add another method in HibernateContextDAO to use start() method of MassIndexer class

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low
    • Sprint:
      Platform 2.0 Beta Sprint 1

      Description

      In HibernateContextDAO class, updateSearchIndex() is used for rebuilding the search index. But, the system waits for it to complete before it can continue. It creates a blocking time, if we have a lot of concepts. For example, rebuilding search index for 50k concepts takes ~30 seconds.
      Instead we can add a new method that uses MassIndexer class' start() method. It makes it an asynchronous call and the system need not wait for its completion.

        Attachments

          Activity

            People

            • Assignee:
              ajjaswanth Venkata Jaswanth U [X] (Inactive)
              Reporter:
              ajjaswanth Venkata Jaswanth U [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: