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

Allowed memory size exceeded error on course report #1

Open
leblangi opened this issue Jul 27, 2015 · 2 comments
Open

Allowed memory size exceeded error on course report #1

leblangi opened this issue Jul 27, 2015 · 2 comments

Comments

@leblangi
Copy link

I just installed the plugin and I have an allowed memory size exceeded error on course report.
I use Moodle v2.8.6 :
allowedmemorysizeexceeded

@lameze
Copy link
Owner

lameze commented Jul 28, 2015

Hmmm I know exactly what's going on here. At the moment, the report query the log table 3 times, getting all the records (which must be huge) in your database. Then, that memory size exceeded error happen.

I already had predict that this could happen, I see few possible solutions for that:

  1. Add more filters (last month, last 3 months, last semester and last year), that way we can limit the amount of data retrieved from the log table.
  2. Do a single query, retrieving all the data in the selected period and each method creating it's own array in the correct format.

There's much more work to be done, before make this plugin STABLE.

Thanks again Giles, I'll try to find some time to work on those issues you have reported.

@leblangi
Copy link
Author

leblangi commented Aug 5, 2015

No problem. I Hope that it will help you!

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