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

totalRecords=exact/estimated/none/auto

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      CP: R1 2022 roadmap
    • Story Points:
      5
    • Development Team:
      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.

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                julianladisch Julian Ladisch
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    TestRail: Runs

                      TestRail: Cases