Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

wpForo 1.x.x [Closed] wpforo widgets queries faster?

2 Posts
2 Users
1 Reactions
1,129 Views
Posts: 533
Topic starter
(@central4allgmail-com)
Prominent Member
Joined: 7 years ago

How can i make these quaries run faster ?

They delay the page 5 secs

 

SELECT SUBSTRING_INDEX( GROUP_CONCAT(`postid`
ORDER BY `created` DESC), ',', 1 ) postids
FROM `wp_wpforo_posts`
GROUP BY `topicid`
ORDER BY MAX(`postid`) DESC
LIMIT 0,65
 
  1. wpForoPost->get_posts()
Plugin: wpforo 65 2.5420
SELECT SUBSTRING_INDEX( GROUP_CONCAT(`postid`
ORDER BY `created` DESC), ',', 1 ) postids
FROM `wp_wpforo_posts`
GROUP BY `topicid`
ORDER BY MAX(`postid`) DESC
LIMIT 0,20
 
  1. wpForoPost->get_posts()
Plugin: wpforo 20 2.1536
1 Reply
Robert
Posts: 10616
Admin
(@robert)
Support Team
Joined: 9 years ago

The speed of quires depends on the MySQL/MariaDB version, on your server performance and on the correct indexes of tables. I'd recommend using MySQL 5.7 or MariaDB 10.4.x. Also, you can  decrease the number of items to be selected in widgets and remove all filters. The settings of widgets have a great impact on the queries speed.