WordPress.org

Ready to get started?Download WordPress

Forums

SQL query for metadata bogging down server (2 posts)

  1. alxndr
    Member
    Posted 3 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
    Member
    Posted 3 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