Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3024

Improve response time and refactor code for GET API /service/xusers/lookup/users

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 3.0.0, 2.2.0
    • Ranger
    • None

    Description

      GET API /service/xusers/lookup/users returns List of String object which contains username. But it also traverse through groupUser list while populating view object VXUser. When there are large number of users and group_users data in database; it takes longer time to respond if we set request parameter pageSize=1000  or more. This causes performance issue and needs to be improved.

      select count(*) from x_user;
      50052
      
      select count(*) from x_group_users;
      500056
      

      Attachments

        Activity

          People

            maheshbandal Mahesh Hanumant Bandal
            maheshbandal Mahesh Hanumant Bandal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: