AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Closed] wpforo widgets queries faster?

2 Posts
2 Users
1 Reactions
1,443 Views
Posts: 533
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@central4allgmail-com)
Prominent Member
Joined: 8 years ago
[#16930]

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: 10747
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 3 months 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.


Share: