Uploaded image for project: 'RAML Module Builder'
  1. RAML Module Builder
  2. RMB-724

totalRecords=none/auto

    XMLWordPrintable

Details

    • CP: R3 2022 roadmap
    • 5
    • Core: Platform

    Description

      Make the totalRecords calculation method configurable.
      When passing a query parameter with a CQL query RMB always calculates totalRecords using the algorithm explained on https://github.com/folio-org/raml-module-builder#estimated-totalrecords . The totalRecords calculation takes some time and the result is not needed by all clients.

      Add a totalRecords parameter with these options:

      • exact: calculates the exact hit count, this may take long
      • estimated: only returns the estimation from PostgreSQL
      • none: the client doesn't need any totalRecords value
      • auto: the default, uses the exactCount threshold and either returns an estimation or the exact hit count, for details see https://github.com/folio-org/raml-module-builder#estimated-totalrecords An additional parameter minExactCount=3000 can be used to overwrite the modules default that usually is 1000, for example query=title=Bee&totalRecords=auto&minExactCount=3000.

      This Jira implements auto and none only. exact and estimated are covered by RMB-900.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                julianladisch Julian Ladisch
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases