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

local_ltiprovider_cron needs optimizing #18

Open
hello-josh opened this issue Jan 25, 2014 · 1 comment
Open

local_ltiprovider_cron needs optimizing #18

hello-josh opened this issue Jan 25, 2014 · 1 comment

Comments

@hello-josh
Copy link
Contributor

There are items being checked in a loop that could be filtered in the select statements for users. For instance, serviceurl and sourceid being empty [1] could be filtered in the user select [2]. Also multiple field updates should be handled in a single update statement [3]

[1] https://github.com/jleyva/moodle-local_ltiprovider/blob/master/lib.php#L234
[2] https://github.com/jleyva/moodle-local_ltiprovider/blob/master/lib.php#L230
[3] https://github.com/jleyva/moodle-local_ltiprovider/blob/master/lib.php#L294

Otherwise the processing of cron becomes exponentially slower as you expose more items via lti provider. Thanks!

@jellisii
Copy link

jellisii commented Jul 8, 2015

I've actually worked around this by using the event system. I've only tested my modifications to the plugin on Moodle V2.9 though.

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

No branches or pull requests

2 participants