Answer the question
In order to leave comments, you need to log in
How to optimize Wordpress with a large database (requests are executed for 7 or more seconds)?
I bought a ready-made site on Wordpress, but after deploying the database and files, I ran into the problem of very slow work, there are now 362,713 posts in the database.
When entering the main page, the following request is executed, and its execution time is approximately 7 seconds:
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish') ORDER BY wp_posts.post_date DESC LIMIT 0, 10;
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts LEFT JOIN wp_postmeta ON (wp_posts.ID = wp_postmeta.post_id AND wp_postmeta.meta_
key = '_yoast_wpseo_focuskw' ) WHERE 1=1 AND (
wp_postmeta.post_id IS NULL
) AND wp_posts.post_type = 'post' AND ((wp_posts.post_status = 'publish')) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0
, 10;
Answer the question
In order to leave comments, you need to log in
There are several options, and all of them will not solve problems instantly.
1) Beat the face of the seller and force either the money to be returned, or tuned to normal operation. This is if the seller knew how much data will be processed on the server.
2) Independent actions. Here it is more interesting of course, especially if you are not very in the subject.
a) We transfer data / code to a local server and look for problems at the level of hardware performance. If everything works fine on the local - most likely there are not enough resources of hosting machines / virtual machines.
b) We connect caching systems. This can seriously speed up the work, but, like any solution, it has a number of disadvantages.
c) Tune the code by hand - in VP it's certainly not so simple and transparent, it's more like repairing a sewer flooded with a thick layer of ... waste.
In general - I sympathize, you have a quest)
but after deploying the db
_yoast_wpseo_focuskw
this, it may be from this plug . Or someone else is trying to read the data from him. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question