Skip to content

Conversation

SpaceCafe
Copy link
Contributor

Fixed database issue in adhoc-task tool_dataprivacy\task\process_data_request_task by splitting query into two parts due to a never ending database request.

Split query into two parts due to a never ending database request
@ziegenberg
Copy link
Contributor

The fix is faster, but for our dataset, it's still taking more than 8 minutes to return an empty set for the first of the two queries. Maybe split it into three or four single queries? Or the alternative query mentioned in the issue comment: #75 (comment).

@NinaHerrmann
Copy link
Contributor

You are missing a semicolon.

@geichelberger
Copy link

geichelberger commented Apr 25, 2023

The alternative query is much harder to understand. I would go for readability/simplicity and split up the joins further.
e.g. mod_assign https://github.com/moodle/moodle/blob/4e632b72518d86f069839620cca270911e09b29a/mod/assign/classes/privacy/provider.php#L137-L203

fixes phpunit errors

Co-authored-by: Daniel Ziegenberg <[email protected]>
@NinaHerrmann NinaHerrmann merged commit 614de63 into learnweb:master May 22, 2023
@NinaHerrmann
Copy link
Contributor

Sorry, I hope I can trust you on this one, as test are not failing :) 👍

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.

4 participants