The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

SQL query for metadata bogging down server (2 posts)

  1. alxndr
    Posted 5 years ago #

    This SQL query is being run on every pageload, taking 2 seconds to complete, and returning 2 MB of data every time. Anyone know what's creating it, and if it can be avoided?

    SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN ( {post_ids of the 40 most recently published posts} );

  2. alxndr
    Posted 5 years ago #

    Looks like it's related to WP3's Menus feature.

Topic Closed

This topic has been closed to new replies.

About this Topic