GithubHelp home page GithubHelp logo

Comments (6)

abias avatar abias commented on July 18, 2024

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.

abias avatar abias commented on July 18, 2024

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.

abias avatar abias commented on July 18, 2024

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.

alekiy avatar alekiy commented on July 18, 2024

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.

abias avatar abias commented on July 18, 2024

Great :) Thank you for the feedback!

from moodle-block_course_overview_campus.

zozoh94 avatar zozoh94 commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.