Can you give me an example of this? In my own testing on localhost, and on https://discourse.angusmcleod.com.au, rating topics load at the same speed as any other topic.
I’ve added settings for the average ratings in the topic and in the topic list:
The slow load of that topic may have more to do with it having 4542 posts That’s a very long topic.
Nevertheless, I’ve made some performance improvements. The first time you load the topic you won’t notice a difference, but subsequent loads may be faster, if the ratings plugin is having any effect on the load time.
I updated the plugin, but unfortunately it didn’t have any effect imo. What is it that takes the most process in this plugin?
If it is calculating the average rating, maybe you could cache the value for, lets say, one day perhaps?
It could be a disaster for rating topics like mine that rapidly grows in number of posts.
However again I need to say that this problem occurred very recently in my last update (discourse core + all plugin). So maybe its because of one of your new commits, or even commits to the core discourse that caused the problem?
Aside from the changes I just made, none of my commits in the last few months to this plugin would have had an effect on performance. They were style and translation changes.
So if there has been a noticeable deterioration in performance in those very large topics in the last few days, it is probably something core related.
I can take a look in more detail at what might have caused this in core Discourse later this week, but you should raise this with the Discourse team.
Quick question: To rate a topic do you need to post in it - or can you rate without making a reply to the topic?
Im asking as I would like to add a book review section to my site. Im not sure what is best: being able to add star rating with or without adding a reply/reason…
I’ve removed the ‘No ratings yet’ label from the topic list. As you allude, it’s not really necessary there. That also fixes the unread count alignment