The paging is very slow under a large number of articles.
-
If I have 500,000 articles, the pagination will be very slow.
I tried this method, but it didn’t work much. The query is still very slow.Is there any way to improve this problem?
SELECT wp_posts.ID FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (7,234,580,665,854,1053,1080,1444,6562,6563) ) AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish' OR wp_posts.post_author = 94179 AND wp_posts.post_status = 'private') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 1260, 20; #Query_time: 12.81016
The page I need help with: [log in to see the link]
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘The paging is very slow under a large number of articles.’ is closed to new replies.