Query length
-
Greetings Rachel,
I still have a problem with the plugin. The number of queries is low, but the query time is long. Here is an example from the admin (backend). The query length is 22.6 seconds :
SELECT wpposts.ID, (
SELECT COUNT(*)
FROM wp_postmeta wpmeta
INNER JOIN wp_posts wpmetaposts
ON wpmetaposts.ID = wpmeta.post_id
AND wpmetaposts.post_type IN ( ‘actualites’,’commentaire-lecture’,’post’ )
AND wpmetaposts.post_status = ‘publish’
WHERE wpmeta.meta_key = ‘_custom_post_type_onomies_relationship’
AND wpmeta.meta_value = wpposts.ID ) AS count
FROM wp_posts wpposts
WHERE wpposts.ID IN ( ‘1248’,’1249′,’1250′,’1251′,’1252′,’1253′,’1254′,’1255′,’1256′,’1257′,’1258′,’1259′,’1260′,’1261′,’1262′,’1263′,’1264′,’1265′,’1266′,’1267′,’1268′,’1269′,’1270′,’1271′,’15469′,’1207′,’1208′,’1209′,’1210′,’1211′,’1212′,’1213′,’1214′,’1215′,’1216′,’1217′,’1218′,’1219′,’1220′,’1221′,’1222′,’1223′,’1224′,’1225′,’1226′,’1227′,’1228′,’1229′,’1230′,’1231′,’1232′,’1233′,’1234′,’1235′,’1236′,’1237′,’1238′,’1239′,’1240′,’1241′,’1242′,’1243′,’1244′,’1245′,’1246′,’1247′ )
AND wpposts.post_status = ‘publish’
ORDER BY wpposts.ID ASCThank you again!
The topic ‘Query length’ is closed to new replies.