Custom field data is stored in the postmeta table, and it’s likely that scanning through this table is causing slowness.
You should:
- install the debug bar plugin which will give you more insight into the queries that are being executed against the database – you’ll be able to see how long each query takes, and the actual SQL code that’s being executed.
- Find the queries that are taking a long time to run, and
EXPLAINthem. This will give you a much better idea of what’s going on, and how to proceed.
Related Posts:
- Should I use Transients with W3 Total Cache APC Caching? [closed]
- What is the most efficient way of querying posts based on visits and date for current day?
- Slow SQL_CALC_FOUND_ROWS Query
- Transient pagination not working properly
- Get the post permalink within the loop but without additional DB query
- How To Get Some Data From WordPress Database Using WordPress $wpdb Query?
- Minimize database queries to user tables?
- Slow page loads due to WordPress Core Query
- No results found from a $wpdb->get_results() query when trying to join more than one meta key query
- Transient api Caches confused
- Is it possible to query from external database? [duplicate]
- What is the best way (regarding performance) to set transients for logged in users?
- How to set up hierarchical relationships without using plugins / meta query
- Using Transients
- I am officially missing something about transient posts
- Disable (or limit) queries when certain content (or data) is not needed (or showed)
- How to get meta key list efficiently?
- update_post_meta performance in a loop woocommerce
- update_post_meta performance in a loop woocommerce
- WP_Term_Query->get_terms() very slow query for WordPress filter
- wpdb get_results() returns only 2 rows
- Website goes slow down after importing long database
- WP_Query always returning the last custom post
- Optimising amount of calls to custom fields
- how to use transient method?
- Make a WP Query search match exactly the search term
- WP_Query: query posts by ids from array?
- Query WooCommerce orders where meta data does not exist
- Finding all results from database within 500 miles of the given latitude and longitude [closed]
- Show only oldest post by author
- How to get the posts published in last two days using WP_Query?
- Dynamically Override Fancy Title – Part II
- Can not switch the queried post in pre_get_posts hook
- How to detect custom query inside `posts_where` hook?
- Pass the same object to multiple widgets in a template with one query
- Is temporarily overwriting $wp_query a bad idea?
- What is considered a default query for the request filter?
- $wpdb insert is not work
- Pass array of taxonomy terms to wp_query
- How WordPress attaches its Featured Images with posts?
- How to find exact match for search term in WP_Query? What is the additional string added in LIKE query in WP_Query?
- Improve wp query perfomance on large db
- How to query a custom post type with a taxonomy filter but display post type archive page?
- reducing the amount of wp_query calls
- List of the years with posts presented
- Set Transient does nothing
- Change query_posts to WP_Query in page but does not work
- Optional Meta Query
- Set conditional on template based on referring page slug
- Editing the default wordpress search
- Iterating through $wpdb query without using get_results for large query results
- Filter posts in category archive page by year using a dropdown
- Set global $wp_query/$post variable for dynamic page generation
- Loop Performance > JSON files vs. WP_Query vs. REST API
- Include data from custom table in WP_Query
- How to get a query variable?
- date_query seems to be ignored by wp_query
- Query Page Content From Theme Options?
- Which is faster wpdb & get_row or wp_query & ge_post_meta?
- Better wordpress attachment query than this
- Transients with dynamic WP_Query
- Modify Search Query if original Query gave no results
- How to cache wp_query with pagination using transients?
- Include current post into loop
- Can’t sort custom post type by random
- Filter post query to only show direct children of category
- how to get Nearby zipcode
- Wpdb->query result show 1 but is not an integer
- Storing an array of objects related to each user
- Is it possible to retrieve posts depending on meta_key LIKE condition? [duplicate]
- WP_User_Query orderby meta_val_num
- WP_Query custom order and pagination
- Unable to paginate a custom page query
- meta_query where the meta value is not the post title
- Query pages created by deleted users
- Woocommerce Get Orders By Meta Value
- Save large WP_Query to transient === false
- Exclude post from wp_query based on custom field boolean
- Get posts that match defined arrays of tags
- How select query is generated in a Custom Post Type?
- Order posts by tags count?
- Strange results from WP_Query
- Is there a way to control both Order By and Order query parameters from one input field
- I need query_posts() to order results first by a meta value and then by post ID
- return child post if available otherwise parent post
- Search has query that will return no results
- WP Query – Search in title or author_name
- URL to Post Archive of Custom Query
- orderby in WP_QUERY – Use the order from the Dashboard
- Random posts in WP_Query when searching by tag
- Ordering Posts by parent category, name ascending
- Set Transient on CPT
- How to query post into a complex slider
- Combine privileged users array with my current query
- Horizontally paginate through sets of blog posts?
- Need help setting up a search form for wordpress [duplicate]
- meta_query dates from an array
- wp_query order by rand is repeating posts
- Modify WordPress Search
- $wp_query->found_posts; returns zero