Skip to content
Unverified Commit aead55e2 authored by Mykhailenko's avatar Mykhailenko Committed by GitHub
Browse files

Make task pagination O(1) complex (#3262)

When user clicks on the job in scheduling-portal, portal requests server to provide "a page" of 20 tasks of this job. However, on the server side, whole job is copied, and from this job, 20 tasks are copied. So finally portal receives its 20 tasks to show. Because server copies WHOLE job (with all its tasks), complexity of this operation is linear to number of tasks in the job.

This PR will make complexity constant by copying only requested tasks.
parent 4769934d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment