Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
After upgrade dbqueries increased!
Avatar
WilRC
Member
sp_UserOfflineSmall Offline
Sep 6, 2015 - 5:22 am

Sorry for my late reaction. I didn't had enough time.

It's working now, I have attached my modified file. DB queries decreased now from 255 to 207. Less than expected.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 6, 2015 - 5:44 am

Well if the page I saw before is anything to go by then it is still making a very heavy demand on many tables - i.e., WP posts and postmeta. And if most or many of those articles have a link to a forum then yes - to the sflinks table as well.

I think if you want to improve this any further then you need to start taking a look at what the WP theme is doing for each of those article extracts. Try turning off the comment count for example - see what effect that has. This really does seem to me to come down largely to a theme issue although if after diagnosis of the theme there is anything we can do to better optimise our part of it then we are more than willing to do so. But I am not sure we can improve on what we have added.

By the way - that fix does have some knock on effects the most important of which is that it fails to make new post/forum links. There is additional code on lace to deal with this and an updated version is likely to be released today.

andy-signature.png
YELLOW
SWORDFISH
Avatar
WilRC
Member
sp_UserOfflineSmall Offline
Sep 6, 2015 - 4:29 pm

Ok clear. 

I've turned off views and comments. This setting dropped the queryload to 162. 

Exact the same as I outcomment this two lines in sp-linking-plugin.php:

Line 75: //add_filter('get_comments_number', 'sp_comments_count_filter', 1, 2);
Line 497: //remove_filter('get_comments_number', 'sp_comments_count_filter', 1);

Does the plugin needs those 2 lines? The forumlink is still counting when those two are outcommented!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 7, 2015 - 6:11 am

Apologies for the delay - had a bit of an emergency yesterday.
It is possible whether they are needed or not may come down to how you have the comment options set up. I would need to set up a series of tests to try out different scenarios before I could make an informed analysis.

Why not try it and see how things pan out. Not just in the front page however, but also at all other points where post data is displayed and comment data is required. You may get there before I do I am afraid.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625