我有很多迟钝的问题。在媒体库中搜索照片时显示:
# Time: 2017-07-02T10:04:13.180832Z
# User@Host: site_234[site_234] @ localhost [] Id: 1226011
# Query_time: 2.109665 Lock_time: 0.000051 Rows_sent: 3 Rows_examined: 183299
SET timestamp=1498989853;
SELECT ID FROM wp_posts where guid = \'https://example.org/uploads/500.jpg\' AND post_type = \'attachment\';
我认为缓慢的查询来自于对附件的查询。如何解决这个问题?我有很多照片。