Skip to content
  • Neill Magill's avatar
    MDL-60945 Web services: Too many progress records retrieved · 3acb2948
    Neill Magill authored
    The core_completion_get_activities_completion_status was getting the
    progress for all users on the course called, and then discarding all
    the records but one.
    
    This change ensures that only progress for the user we are interested in
    is retrieved from the database.
    
    This has a side benefit of removing a full table scan from the query
    finding the users inside the get_progress_all() method.
    3acb2948