- Posts: 129
- Thank you received: 0
Support for SermonSpeaker 5.x is in bugfix mode only, the same as it is for Joomla 3.10.
I will not add any new features to this releases.
Please upgrade to SermonSpeaker 6.x and Joomla 4.x, which is better anyway.
I will not add any new features to this releases.
Please upgrade to SermonSpeaker 6.x and Joomla 4.x, which is better anyway.
Counting of sermons for series very slow
04 May 2018 07:57 #7099
by Ken Lee
Counting of sermons for series very slow was created by Ken Lee
Dear Thomas,
At my development site I upgraded to 5.8.3 and find the the listing of Series gets very slow. It takes about a minute to show.
Attached SlowQuery.txt file is the show full processlist and explain select statement in Mysql during the wait. It seems the select count subquery is performing badly.
My site has about 40,000 sermons and 260 series.
Thank you for helping.
Regards,
Ken
At my development site I upgraded to 5.8.3 and find the the listing of Series gets very slow. It takes about a minute to show.
Attached SlowQuery.txt file is the show full processlist and explain select statement in Mysql during the wait. It seems the select count subquery is performing badly.
My site has about 40,000 sermons and 260 series.
Thank you for helping.
Regards,
Ken
Please Log in or Create an account to join the conversation.
04 May 2018 08:05 #7100
by Ken Lee
Replied by Ken Lee on topic Counting of sermons for series very slow
I undo the lines at series.php and speakers.php in models.
github.com/Bakual/SermonSpeaker/commit/b...a854bc930562d66d1a47
Now they are blazing fast.
github.com/Bakual/SermonSpeaker/commit/b...a854bc930562d66d1a47
Now they are blazing fast.
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
04 May 2018 21:36 #7101
by Thomas Hunziker
Replied by Thomas Hunziker on topic Counting of sermons for series very slow
I take it this is in backend only, not frontend.
When I wrote that subquery, I expected a small performance impact. But nowhere like what you experience. That's a big surprise.
I would be interested to get a a dump of your sermonspeaker database tables if you're willing to share those. So I can try with a big real life sample. Otherwise I try to build an own big sample and see if something can be improved by either writing the query different or adding some indexes to the table.
When I wrote that subquery, I expected a small performance impact. But nowhere like what you experience. That's a big surprise.
I would be interested to get a a dump of your sermonspeaker database tables if you're willing to share those. So I can try with a big real life sample. Otherwise I try to build an own big sample and see if something can be improved by either writing the query different or adding some indexes to the table.
Please Log in or Create an account to join the conversation.
07 May 2018 04:06 #7102
by Ken Lee
Replied by Ken Lee on topic Counting of sermons for series very slow
Email sent. Please check.
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
07 May 2018 21:50 #7103
by Thomas Hunziker
Replied by Thomas Hunziker on topic Counting of sermons for series very slow
Thanks, that was very helpful. It didn't take a minute on my localhost but still notable 15 seconds which was enough to do some tests.
Can you try with the attached version?
It does add some indexes to the database tables. Especially the one on the series_id column did bring ther query down to around 50 miliseconds. I think that's acceptable so far. I'm interested if that works the same for you.
Can you try with the attached version?
It does add some indexes to the database tables. Especially the one on the series_id column did bring ther query down to around 50 miliseconds. I think that's acceptable so far. I'm interested if that works the same for you.
The following user(s) said Thank You: Ken Lee
Please Log in or Create an account to join the conversation.
08 May 2018 08:45 #7104
by Ken Lee
Replied by Ken Lee on topic Counting of sermons for series very slow
Installed the attached version. It is really fast now.
Please Log in or Create an account to join the conversation.
Time to create page: 0.125 seconds