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

Replace temporary files with database access in highest level runner module #2169

Conversation

mfranzon
Copy link
Collaborator

@mfranzon mfranzon commented Jan 8, 2025

close #2135

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 Jan 8, 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 1.0 0.80 0.0 0.0
power 0.8 0.9 0.89 0.0 0.0
dataset 0.8 1.0 0.80 0.0 0.0
project 0.8 1.0 0.80 0.0 0.0
job 0.8 0.9 0.89 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 10.8 9.8 1.10 0.6 0.6
power 425.5 434.1 0.98 366.2 366.2
dataset 160.3 162.4 0.99 134.0 134.0
project 47.4 47.5 1.00 47.2 47.2
job 30.9 31.0 1.00 32.4 32.4

GET /api/v2/job/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 7.1 6.2 1.15 2.2 2.2
power 142.9 143.2 1.00 652.2 652.2
dataset 150.6 152.9 0.98 905.2 905.2
project 48.8 49.6 0.98 283.8 283.8
job 43.4 41.0 1.06 224.9 224.9

GET /api/v2/project/

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
vanilla 7.5 8.1 0.93 0.1 0.1
power 7.2 6.9 1.04 0.1 0.1
dataset 7.2 7.1 1.01 0.1 0.1
project 9.4 9.6 0.98 2.3 2.3
job 7.3 7.8 0.94 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.0 5.9 1.02 0.8 0.8
power 6.2 6.0 1.03 0.8 0.8
dataset 6.3 6.1 1.03 0.8 0.8
project 6.2 6.5 0.95 0.8 0.8
job 6.4 6.1 1.05 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 8.4 7.9 1.06 1.6 1.6
power 7.2 6.8 1.06 1.6 1.6
dataset 7.2 7.0 1.03 1.6 1.6
project 7.4 7.5 0.99 1.6 1.6
job 7.2 7.8 0.92 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 11.8 15.5 0.76 0.8 0.8
power 26.1 26.6 0.98 29.1 29.1
dataset 22.0 20.6 1.07 16.7 16.7
project 24.8 22.6 1.10 21.0 21.0
job 12.7 11.1 1.14 0.8 0.8

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

User Time current (ms) Time main (ms) Ratio current/main Size current (Kb) Size main (Kb)
dataset 156.1 163.0 0.96 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.8 4.9 0.98 0.2 0.2
power 4.5 4.7 0.96 0.2 0.2
dataset 4.5 4.7 0.96 0.2 0.2
project 4.6 4.7 0.98 0.2 0.2
job 4.4 4.7 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.2 274.2 1.00 0.2 0.2

Copy link

github-actions bot commented Jan 9, 2025

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  fractal_server
  __init__.py
Project Total  

This report was generated by python-coverage-comment-action

tcompa and others added 14 commits January 14, 2025 09:17
…ghest-level-runner-module' of github.com:fractal-analytics-platform/fractal-server into 2135-replace-temporary-files-with-database-access-in-highest-level-runner-module
…ghest-level-runner-module' of github.com:fractal-analytics-platform/fractal-server into 2135-replace-temporary-files-with-database-access-in-highest-level-runner-module
…ghest-level-runner-module' of github.com:fractal-analytics-platform/fractal-server into 2135-replace-temporary-files-with-database-access-in-highest-level-runner-module
@tcompa tcompa changed the base branch from main to dev-2.11 January 14, 2025 10:11
tcompa and others added 5 commits January 14, 2025 11:14
…ghest-level-runner-module' of github.com:fractal-analytics-platform/fractal-server into 2135-replace-temporary-files-with-database-access-in-highest-level-runner-module
@tcompa tcompa merged commit 803c147 into dev-2.11 Jan 14, 2025
17 checks passed
@tcompa tcompa deleted the 2135-replace-temporary-files-with-database-access-in-highest-level-runner-module branch January 14, 2025 11:13
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.

Replace temporary files with database access, in highest-level runner module
2 participants