Comments (6)
Hi,
I'm sorry to hear that you have problems with my block.
After I have inherited the block from another developer, we have added many features and I have to admit that the block has grown to be mostly a large function with spaghetti code. So, performance problems are possible.
On the other hand, I remember adopting all recent changes from block_course_overview, especially the things which are mentioned in https://tracker.moodle.org/browse/MDL-34785.
It will take some days until I am able to have a deeper look at the performance of the block.
Could you please answer some questions in the meantime:
- If users experiencing performance problems remove the block, is the performance acceptable again?
- Do all users with more than 20 courses experience the performance problems? Are there performance differences between users with more than 20 courses which have no news and users with more than 20 courses which have many news (forum posts, assignments....)?
- Did you set MAX_MODINFO_CACHE_SIZE in your config.php? If yes, which value does it have?
Alex
from moodle-block_course_overview_campus.
Dear Alex,
I just published version 2.6 of the block and would like to have a look at the performance topics finally. Could you please answer my questions above so that I can work on it?
Alex
from moodle-block_course_overview_campus.
Dear Alex,
I finally had the chance to look at the performance problems, but I was not able to reproduce your problems.
I am using the same code to get course news as the core course_overview block, so I think the ticket you are referring to should be solved for block_course_overview_campus, too.
Of course, block_course_overview_campus gets course news of all of the user's courses and it does this even if there is only a course subset displayed in the course list because of active course filters. This produces a quite high DB load when the block is shown. I am thinking about if this can be improved with more AJAX or better usage of the Moodle caching mechanisms.
But, again, I was only able to get page loads up to 2-3 sec with approx. 450 DB reads for a user with a quite long course list (> 50 courses), I did not experience 10+ sec page load times.
I think you don't need to answer my questions from 3 months ago, some of them are nonsense. But I'd like to ask you now
- to test the 2.6 version of the block to see if the problem still exists in 2.6
- to disable the course news in the plugin (possible in the 2.6 version) to see if this will reduce the page load time significantly
- to remove block_course_overview_campus and use the core block_course_overview block (with a list length > amount of courses to display all courses) to see if this core block will show the course list quicker than my block
Thanks,
Alex
from moodle-block_course_overview_campus.
Hello Alex,
finally I found some time to test the performance.
The latest contribution as well as the cache improvements fixed the problems.
So you may close the issue. Thx.
from moodle-block_course_overview_campus.
Great :) Thank you for the feedback!
from moodle-block_course_overview_campus.
Hello @abias,
I have the same problem with Moodle 3.5.9 and your plugin in version v3.5-r2 (2018092600).
Can the enablecoursenews value still be a problem ?
I didn't touch MAX_MODINFO_CACHE_SIZE value.
Thanks for your help.
from moodle-block_course_overview_campus.
Related Issues (20)
- Wrong id used for teacher filter HOT 4
- Eye icon not work HOT 1
- Notification : duplicate value - Debug Mode HOT 9
- Missing course category attribute HOT 1
- Suggestion: Students see list of all courses they are enrolled to, but can only access those available. HOT 2
- Bug: Refreshing VLE page shows category as empty HOT 13
- Suggestions HOT 4
- "Undefined variable: modchoices" error whenever I perform an upgrade HOT 2
- Problem with dropdown after logging back in HOT 3
- Error when users are enrolled in too many courses (or long course names) HOT 5
- Plugin Name in language file HOT 7
- pix_url is depraceted in Moodle 3.4 HOT 1
- User can see hidden categories HOT 1
- Moodle 3.5 compability? HOT 1
- Suggestion: Separate link for category/top category at course list output HOT 2
- PHP Notice: Undefined variable / PHP Warning: array_key_exists() expects parameter HOT 3
- Plugin breaks behat tests
- "No courses" text HOT 1
- Please add a "Reset filters" button HOT 3
- Remove course news functionality as it does not work anymore from Moodle 3.7 on HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-block_course_overview_campus.