Uploaded image for project: 'mod-inventory-storage'
  1. mod-inventory-storage
  2. MODINVSTOR-414

totalRecords value may be wildly inaccurate for large collections

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Duplicate
    • None
    • None
    • None
    • Other dev

    Description

      When many many (>10k) instance records are present, the totalRecords value in response to some queries may be wildly in accurate. e.g. when 12k rows are present, the query

      /inventory/instances?limit=30&offset=60&query=(languages="fre") sortby title
      

      receives the response

      ...  "totalRecords" : 999999999
      

      when in fact only ~100 records match the query. The true total can be retrieved by changing the query such that its limit and offset values cover the end of record-count, e.g.

      /inventory/instances?limit=30&offset=90&query=(languages="fre") sortby title
      

      which receives the response

      ...  "totalRecords" : 110
      

      CC: abreaux jakub marcjohnson

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                zburke Zak_Burke
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases