• When a user creates/updates a post within the admin, it takes between 15 and 30 seconds for that operation to complete.

    The culprit appears to be this slow query:

    SELECT ID
    FROM wp_posts
    WHERE post_type = 'attachment'
    AND post_mime_type LIKE 'video%'
    LIMIT 1

    This is a known bug and the core team is working on it, however in the meantime, I’d like to be able to disable this query. Can I do this within my functions.php file using something like the pre_get_posts filter?

  • The topic ‘Can I disable this core query?’ is closed to new replies.