Uploaded image for project: 'mod-rtac'
  1. mod-rtac
  2. MODRTAC-38

For 1 User Rtac takes ~15 seconds to get holdings record with open loans

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • P2
    • Resolution: Done
    • None
    • 2.0.0
    • None
    • Q3 scope, Gulfstream Sprint 95, Gulfstream Sprint 96, Gulfstream Sprint 97
    • 8
    • Gulfstream

    Description

      Overview:
      Steps to Reproduce:
      Log into performance environment FOLIO environment as folio user
      Make GET rtac/instanceId where each instance has more than 300 holdings record

      Expected Results: getRtacById method is O(n^3)
      Actual Results: getRtacById is O( n )

      Additional Information:
      The main issue is with https://github.com/folio-org/mod-rtac/blob/d8e51a8a82b69a6f1717b9c7abf60342ded99246/src/main/java/org/folio/rest/impl/RtacResourceImpl.java#L48
      Even after leveraging vertx's asynchronous behavior and considering the fact that 1 instance -> many holdings -> each holding -> many items -> each item -> many loans, this call chain triggers Big O(n^3) or Big O(holdings * items * loans) algorithmic complexity.

      https://issues.folio.org/browse/PERF-61

      URL:
      https://wiki.folio.org/pages/viewpage.action?pageId=36579550

      The goal is to get RTAC execution to below 5 seconds for more than 300 holdings.

      Interested parties:
      All consumers of mod-rtac

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                varunjavalkar Varun Javalkar
                varunjavalkar Varun Javalkar
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases