Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uniform pagination #2331

Draft
wants to merge 12 commits into
base: dev-2.14
Choose a base branch
from
Draft

Conversation

ychiucco
Copy link
Collaborator

closes #2324

Checklist before merging

  • I added an appropriate entry to CHANGELOG.md
  • I added logging to new code - if appropriate.
  • I merged main into the current branch.

Copy link

github-actions bot commented Feb 28, 2025

Benchmark comparison

GET /api/alive/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 0.8 0.8 1.00 0.0 0.0
power 0.8 0.8 1.00 0.0 0.0
dataset 0.8 0.8 1.00 0.0 0.0
project 0.8 0.8 1.00 0.0 0.0
job 0.8 0.8 1.00 0.0 0.0

GET /api/v2/dataset/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 9.4 11.6 0.81 0.3 0.6
power 222.2 277.0 0.80 105.9 345.4
dataset 75.8 98.5 0.77 5.4 123.2
project 24.4 26.9 0.91 6.9 43.9
job 8.9 12.6 0.71 0.3 29.7

GET /api/v2/job/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 6.3 8.1 0.78 2.2 2.2
power 52.3 60.9 0.86 667.3 656.2
dataset 53.3 61.6 0.87 910.0 909.2
project 18.4 22.3 0.83 285.3 285.0
job 18.6 19.0 0.98 226.1 225.9

GET /api/v2/project/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 7.3 11.7 0.62 0.1 0.1
power 7.0 8.1 0.86 0.1 0.1
dataset 6.9 8.4 0.82 0.1 0.1
project 8.3 9.8 0.85 2.3 2.3
job 7.7 8.1 0.95 0.1 0.1

GET /api/v2/task/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 6.2 6.9 0.90 0.8 0.8
power 6.0 6.8 0.88 0.8 0.8
dataset 5.8 7.0 0.83 0.8 0.8
project 5.7 6.9 0.83 0.8 0.8
job 5.8 7.7 0.75 0.8 0.8

GET /api/v2/task-group/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 7.0 8.1 0.86 1.6 1.6
power 6.9 7.9 0.87 1.6 1.6
dataset 6.9 8.3 0.83 1.6 1.6
project 6.5 8.0 0.81 1.6 1.6
job 6.9 7.9 0.87 1.6 1.6

GET /api/v2/workflow/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 12.1 13.0 0.93 0.8 0.8
power 15.1 16.3 0.93 28.0 28.0
dataset 12.7 14.9 0.85 16.2 16.2
project 14.9 16.8 0.89 20.4 20.4
job 11.6 12.0 0.97 0.8 0.8

POST /api/v2/project/3/dataset/417/images/query/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
dataset 43.6 46.3 0.94 275.1 275.1

GET /auth/current-user/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 4.9 5.9 0.83 0.2 0.2
power 4.7 5.5 0.85 0.2 0.2
dataset 4.5 5.3 0.85 0.2 0.2
project 4.6 5.1 0.90 0.2 0.2
job 4.7 5.0 0.94 0.1 0.1

POST /auth/token/login/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
dataset 274.1 272.9 1.00 0.2 0.2

@ychiucco ychiucco changed the title Introduce uniform Pagination Uniform Pagination Feb 28, 2025
@ychiucco ychiucco changed the title Uniform Pagination Uniform pagination Feb 28, 2025
@ychiucco ychiucco requested a review from tcompa February 28, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant