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

Plugin needs some optimisation to be used in large sites #40

Open
golenkovm opened this issue Mar 28, 2022 · 1 comment · May be fixed by #41
Open

Plugin needs some optimisation to be used in large sites #40

golenkovm opened this issue Mar 28, 2022 · 1 comment · May be fixed by #41

Comments

@golenkovm
Copy link

It's been found that the following SQL is smashing DB when minduplicates is set to 5:

SELECT contenthash, COUNT(contenthash)
FROM mdl_files
WHERE filearea <> ? AND (filearea <> ? OR component <> ?)
GROUP BY contenthash
HAVING COUNT(contenthash) >= $1
@gthomas2
Copy link
Owner

I'm guessing that is due to the "HAVING" portion of the query.

@cameron1729 cameron1729 linked a pull request Apr 1, 2022 that will close this issue
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 a pull request may close this issue.

2 participants