I have encountered the same issue but with product attributes, since I had more than 20000 products and much more product attributes, the queries were very slow.
What I did was, in order to make it faster, wrote an small plugin converting tags to custom fields and then displayed those on the page, but in your case if you need the tag archive pages and its functionalities, I suppose there is no other way around it.
To avoid max_execution_time
try to configure your plugin to execute tag conversion instructions in small chunks,For instance, From posts 1 to 2000 and 2000 to 4000 and so on.
Database indexing might help too.
Finally try to use a cache plugin such as wp_fastest_cache
it helps in an immense degree.
Related Posts:
- Get posts by menu ID
- Slow SQL_CALC_FOUND_ROWS Query
- Order by custom table and multiplication
- why update and delete query not worked in custom table?
- How to implement a new row_count method in WordPress?
- how to get Nearby zipcode
- WP_Query with page_ids in arguments without a result
- Why last row deleted when refresh page
- WP_Query always returning the last custom post
- SQL query into to WP query
- Ignoring initial articles (like ‘a’, ‘an’ or ‘the’) when sorting queries?
- Posts with at least 3 tags of a list of tags
- Return only Count from a wp_query request?
- Use REGEXP in WP_Query meta_query key
- Order by DESC, ASC in custom WP_Query
- How to prevent execution of default query, while preserving ability to use WP_Query in template?
- Should I use Transients with W3 Total Cache APC Caching? [closed]
- Add indexing to meta_value in wp_postmeta
- Getting wrong relationship value in $args in wp_Query?
- find a random blogid across my multisite network that has at least one post published
- Better way to get tag stats?
- Given a WP_Query, how can I get a list of tags?
- Executing Queries in tag.php
- How to order posts tag by tag?
- post_type is ignored by WP_Query when ‘tag’ argument is included
- WP Rest API v2 return posts with specific tag
- Loop through all tags & output posts in alphabetical list
- What is an efficient way to query based on post_meta?
- Order posts by tags count?
- SQL query equivalent to WP User Query
- What’s wrong with this WP query?
- Stop all SQL_CALC_FOUND_ROWS wordpress queries
- How to count post meta key values for all posts in database
- Group posts by meta_key
- How to search for posts IN OR title OR content OR author?
- How to get any tag ID
- WP_Query hit max joins… How else can I build a search function that uses custom fields?
- Get all posts without tags
- Would this post meta be better added to the post table rather than post_meta table
- WP Query for Posts (Products) in Specific Category that has 2 Specific Tags (*AND* both tags not *OR*)
- How to find if a post with custom_field == X exists?
- Order By Multiple Meta Fields
- meta_query on a date range using an array of values
- WP_Query Performance Issues with meta_query
- if statement on database query
- Should close $wpdb via $wpdb->close()
- How to speed up wp_query, took more 5s to run against 100k posts
- Get the post permalink within the loop but without additional DB query
- Filter WordPress posts by between parameter
- SQL User Query by Multiple Roles using PHP
- Retrieve featured image (thumbnail) url from multiple posts with one query
- WordPress Query is taking more then 20 second and stuck on creating index
- How to exclude products by tag from woocommerce shop page?
- Pagination problem after WP_Query with tag filtering
- Get the Plugin Which Triggered a MySql Query in WordPress?
- How To Get Some Data From WordPress Database Using WordPress $wpdb Query?
- What’s faster? One big query, or several smaller ones?
- Mysql query LIKE not working
- How to get posts on a specific date – WP Query
- Using WP_Query and WP_Meta_Query Outside of WordPress
- 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
- Query post from all category with same tag on 1 pages
- wpdb custom post_type problem
- Single meta_query query using OR instead of AND in request’s WHERE statement
- reducing the amount of wp_query calls
- WordPress Related Post by tags in Single.php
- How to use MySQL’s MATCH AGAINST in WP_Query?
- Slow WP_Query for custom post type
- Performance when getting post meta for post retrieved by meta value
- How to build a WP_Query using mulitple tags and using AND or OR operator between them
- Create WP_Query to search for posts by their categories or their parent/child categories
- Include tags in WP_Query
- Search for multiple tags?
- Display posts from only one post form in custom query and exclude in main query
- Hide Administrators From User List except current user (administrator)
- Add “Category” to Mysql Query
- Mysql query and order meta value
- Help with WP_Query – Too many mySQL queries
- Using hook to use DISTINCT in a wp_query
- How can I make WP_Query get posts that have a tag but also have random other tags?
- pagination with ‘no_found_rows’ => true,
- Cluster WooCommerce products in each Category Archive by Tags assigned to products
- Order by summing multiple values
- Display tags with random thumbnail from selection of posts with that tag
- Query posts intersecting tags and categories
- querying data via $wpdb and get_row
- wp_Qwery works to slow
- Combining categories (Query posts with multiple taxonomy terms)
- Show all data in database table and make it into an interactive table
- Wp query show post by author name or post title or post content
- inserting a post from an extern php file but post content doesn’t show on wp site
- No results found from a $wpdb->get_results() query when trying to join more than one meta key query
- database query with more than a couple meta hangs and doesn’t complete
- Query most popular terms by taxonomy over 2 week period
- Which is faster wpdb & get_row or wp_query & ge_post_meta?
- How to access custom WordPress database tables
- Order by most used tag
- WP Query with multiple tags by get the tags