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 #32: Fix scaling issue for large classes with high concurrent users #33

Merged
merged 1 commit into from
Jul 28, 2020
Merged

Issue #32: Fix scaling issue for large classes with high concurrent users #33

merged 1 commit into from
Jul 28, 2020

Conversation

pauldamiani
Copy link
Contributor

@pauldamiani pauldamiani commented Jan 15, 2019

No description provided.

@pauldamiani pauldamiani changed the title Issue #32: Fix scaling issue for large classes with high concurrent u… Issue #32: Fix scaling issue for large classes with high concurrent users Jan 15, 2019
@brendanheywood
Copy link

@deraadt any chance you could review this please? See #32

This patch is quite simple but has quite big impact on performance, eg 4 seconds of processing on a large page:

image

@alex-rowe
Copy link

There was a new release recently but this was not included. Was there a reason for skipping this simple change as it causes issues on sites with lots of users?

@brendanheywood
Copy link

We'd seen clients with ~10 instances of this block on one course page and the performance is horrendous without this patch, ie 30+ seconds

I still think there can be even more work done to reuse some lookups when there are multiple block instances on the same page but we'll sort another pr for that

@alex-rowe
Copy link

Looking at our Percona Monitoring and Management application, this morning this single query is 0.11% of all total queries but is causing 5.21% of our database load.

Having 1000 users logging in and accessing a course with this block enabled, at the same time, is putting unnecessary load on our DB server.

@DegrangeM
Copy link

@jonof Is tagged as "Lead maintainer" on the moodle plugin page, so maybe he can check this.

@brendanheywood
Copy link

The repos links are wrong in the plugin dir, I've logged #61 to sort that out

@jonof jonof merged commit 7384c06 into jonof:master Jul 28, 2020
@jonof
Copy link
Owner

jonof commented Jul 28, 2020

Seems it's difficult to get a reproduction using a synthetically generated medium-size course and several hundred exclusions to be quite as bad as the profile shot above suggests, but I'll believe you. A formal release will come soon.

@brendanheywood
Copy link

thanks heaps @jonof

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.

None yet

5 participants