Hallo zusammen,
unsere "wp_posts" Tabelle umfasst mittlerweile fast 15k Einträge, was dazu führt, dass folgende Query teilweise extrem lange Ladezeiten (bis zu 2 Minuten) hat und weitere Queries auf die gleiche Tabelle blockiert.
Höchstwahrscheinlich würde es helfen, der Query ein LIMIT zu verpassen, dafür müsste man aber erst die entsprechende Stelle im Quellcode finden. Hat jemand eventuell eine Ahnung, in welcher Datei die Query hinterlegt ist?
Es handelt sich um folgende Query (laut phpMyAdmin):
PHP
SELECT `ID` , `post_author` , `post_date` , `post_date_gmt` , `post_status` , `post_name` , `post_modified` , `post_modified_gmt` , `post_parent` , `post_type`
FROM `wp_posts`
WHERE (
(
post_status = 'publish'
AND (
post_type = 'post'
OR post_type = ''
)
)
OR (
post_status = 'publish'
AND post_type = 'page'
)
)
AND post_password = ''
ORDER BY post_modified DESC
Alles anzeigen
Besten Dank schon mal vorab für eure Hilfe!
Viele Grüße
Whooper