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

Improve performance of jobs aggregation. #1934

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aaronweeden
Copy link
Contributor

WORK IN PROGRESS

Description

TODO: Check if this slows down batch queries.
TODO: Verify that quarter and year are slower.
TODO: Test in Docker.

This PR improves the performance of the Jobs realm aggregation.

In testing ingestion of a day in October 2024 on xdmod-dev using the following commands,

sudo -u xdmod /data/www/xdmod/share/tools/etl/etl_overseer.php -v debug -a xsede.jobs-xdcdb.XdcdbJobRecordDayAggregator -s 2024-10-16 00:00:00 -e 2024-10-16 23:59:59 -f
sudo -u xdmod /data/www/xdmod/share/tools/etl/etl_overseer.php -v debug -a xsede.jobs-xdcdb.XdcdbJobRecordAggregator -s 2024-10-16 00:00:00 -e 2024-10-16 23:59:59 -f

the old and new queries took this time to run:

Aggregation unit Before After
Day (records = 6133) 456.82s 9.14s
Month (records = 55224) 44.66s 33.43s
Quarter (records = 55224) 46.12s 49.53s
Year (records = 364212) 412.72s 664.97s

Motivation and Context

Tests performed

Checklist:

  • The pull request description is suitable for a Changelog entry
  • The milestone is set correctly on the pull request
  • The appropriate labels have been added to the pull request

@aaronweeden aaronweeden added the enhancement Enhancement of the functionality of an existing feature label Oct 25, 2024
@aaronweeden aaronweeden added this to the 11.0.1 milestone Oct 25, 2024
@aaronweeden aaronweeden force-pushed the optimize-jobs-aggregation branch from 54369b4 to 36021ce Compare October 25, 2024 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of the functionality of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant