Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-4254

Basic Search : Optimize pagination

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: atlas-core
    • Labels:

      Description

      Current Working of Pagination

      • When user specifies page information i.e offset and limit in the request, except some condition, offset is reset to 0
      • Query is then executed from 0 offset and limit
      • Filter out the results obtained from query
      • Generate result set by skipping the results from 0 to the given offset

      New Working Structure

      • New Parameter 'marker' (String) has been introduced in SearchParameters which will have encrypted string as value.
      • The marker should be  set as '*' for the start of the page
      • The response of above request (AtlasSearchResult) will have 'nextMarker' field which will have encrypted String which is to be passed as value of 'marker' in the subsequent request
      • if marker is set then offset should not be greater than 0

      Improvement

      • It will increase performance of the basic search 

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pinal.shah Pinal
                Reporter:
                pinal.shah Pinal
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: