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

Issue #596: SQL change with some performance / resource improvements #597

Conversation

JoshAudette
Copy link
Contributor

@JoshAudette JoshAudette commented Feb 15, 2024

#596

Updated SQL for the generate_status_report task using Common Table Elements.

In testing, these queries use less resources and complete faster compared to current ones.

Tested on MySQL 8 and PosgreSQL 14.

NOTE: the WITH clause is supported in MySQL since version 8 but not 5.7. Since 12 in PostgreSQL.

So I think we may need a base branch MOODLE_402_STABLE and then change this PR to merge to that base branch.

@michaelkotlyar
Copy link
Contributor

Hey Josh, this is looking good. You'll see I've added some comments to resolve but once we've sorted that out, I'll create a 4.2 branch and merge this

@michaelkotlyar michaelkotlyar changed the base branch from MOODLE_310_STABLE to MOODLE_402_STABLE February 28, 2024 08:52
@michaelkotlyar michaelkotlyar merged commit bb158f9 into MOODLE_402_STABLE Feb 28, 2024
28 checks passed
@michaelkotlyar michaelkotlyar deleted the MOODLE_402_STABLE_issue596_gen_report_sql_tweaks branch February 28, 2024 08:55
@michaelkotlyar
Copy link
Contributor

Hey Josh, all merged to our new MOODLE_402_STABLE branch. Thanks for your help!

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.

2 participants