Results
Submitted by jprihecs on Thu, 08/25/2016 - 18:20
Forums:
Hello,
I was wondering if the log with results can be flushed and what toll it takes on disk space of site load time or whatever other storage requirement it may have.
Thanks for the great work you're doing!
Jean-Pierre
thomasmars
Fri, 08/26/2016 - 10:15
Permalink
Hi Jean-Pierre
The database stores one result per content per user, then updates the results in order to take up minimal disk space.
There are no convenient tools for flushing the results table, you would have to access the database to do this.
Thomas
jprihecs
Fri, 08/26/2016 - 11:09
Permalink
Results
Thank you very much for yr fast answer. Is there any way, though, to deactivate the logging of results?
thomasmars
Mon, 08/29/2016 - 10:37
Permalink
Hi,
To my knowledge there is no way of deactivating logging of results. May I ask why you would want this ?
jprihecs
Mon, 08/29/2016 - 16:40
Permalink
Results
Thank you Thomas.
Of course I understand that logs are a useful tracking tool for teachers/students. Reason for deactivating logging of results is not to impose too heavy toll on server resources. If I post online say 50 fill-the-gap exercices to be completed by a pool of 500 students, this means 25000 logs, right? I suppose this is a real burden in terms of server resources even if the logs are text only. Is that right?
Thank you again.
Jean-Pierre
thomasmars
Tue, 08/30/2016 - 11:30
Permalink
Hi Jean-Pierre
I'm no expert on server resources or operations, but I believe 25000 logs/rows would not impose a significantly heavey toll on a server. This of course depends on your server resources. Regarding disk space 25000 logs would in the worst case of using the full available value of each row take up 25000 logs * 6 rows * 4 bytes = 600kb.
If you are intent on disabling the logging you can set H5PIntegration.postUserStatistics to false when H5PIntegration object has been initialized (all h5p scripts has loaded). You can see it in the source code of h5p core library.
Best regards,
Thomas
jprihecs
Tue, 08/30/2016 - 11:32
Permalink
Results
All right, Thomas, your argument is convincing. Thank you for taking the time to inform me and also suggesting a solution. Really appreciate it.
Best,
Jean-Pierre