Skip to content
New issue

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

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

Already on GitHub? # to your account

Update log table sql migration query to be more efficient #1886

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

eiffel777
Copy link
Contributor

This query can take a very, very long time when the mod_logger.log_table is large, changing to use a ON condition decreases the time the query takes to run from days in some cases to minutes.

Tests performed

Tested on staging servers where query went from taking days to taking under a minute to run.

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

@eiffel777 eiffel777 added the enhancement Enhancement of the functionality of an existing feature label Jul 16, 2024
@eiffel777 eiffel777 added this to the 11.0.0 milestone Jul 16, 2024
@eiffel777 eiffel777 self-assigned this Jul 16, 2024
@eiffel777 eiffel777 merged commit 86d915c into ubccr:xdmod11.0 Aug 2, 2024
4 checks passed
# for free to join this conversation on GitHub. Already have an account? # 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.

2 participants