Your log shows that MySQL is performing a linear scan of all table records to get the necessary row – this is because there is no index for guid
Assuming wp_rb_posts is just the normal posts table with a slightly modified prefix, then you can just add an index for that field, and you’ll see a dramatic improvement.
The SQL statement for doing this is:
CREATE INDEX guid ON wp_rb_posts(guid);
Related Posts:
- Creating 20,000 Posts or Pages using a .csv file?
- How do I run SQL queries on a WordPress web page? [closed]
- Migrating to WordPress Recipe Plugin and Some SQL Issues
- JOIN and SUM different statement results (Mailster Database)
- Memcaching recurring SQL Queries
- How to get database connection details without longing to cpanel in WordPress?
- Performing CRUD operations on front end in wordpress
- Display a number value from mysql query in WP
- Get all the related data from WordPress DB
- What’s the easiest way to duplicate an entire navigation menu?
- Search and replace text across all posts
- Convert WordPress posts to products in WooCommerce
- Can I explicitly specify ENGINE=InnoDB in WordPress?
- Updating WooCommerce variable product stock issue
- Bad Request (Invalid Hostname) on working server, database problem
- How can I list only sites that use a particular theme or plugin?
- Changing BIGINT to INT
- How can I get a list of plugins and which blogs are using them?
- Replace existing pages with new pages, keep menu links
- What is the easiest way to implement cascading database upgrade for my plugin?
- Can I run multiple queries with $wpdb->prepare?
- How to remove duplicate Custom Fields?
- How to write one comment and publish on every post using database or plugin?
- How to get number of Affected rows from wordpress dbDelta() function
- Plugin Development sqlite or WordPress’ database
- MySql database help for a plugin
- How to remove Database Table in WordPress via Function file?
- Bulk edit existing shortcode within custom field
- How to simultaneously access the same MySQL database in the main column and sidebar of WordPress?
- Creating mySQL procedure with $wpdb
- Prevent duplicate records in plugin table
- WpDataTables – View Image Directory
- get current date + 90 days and checking every day
- How can I perform high-level database merging for WordPress within continues delivery?
- WordPress plugin creation how to execute .sql in order to insert multiple rows at activation of plugin
- Plugin: register_deactivation_hook works perfectly well, while register_activation_hook suddenly stopped working
- Insert data from .sql file in wordpress plugin
- WordPress + JavaScipt + AJAX + MySQL: insert query for form
- WordPress Backend HA (Automatic failover)
- Automatic switch to backup database on fail
- WordPress page and plugin list using sql query
- Multiple instance of data in plugin custom database table on plugin activation
- WP-DownloadManager – Query most download per week/month etc
- Mass SQL WordPress Meta Key deletion
- correct validate and sql query
- correct sql query
- SQL query, error
- dbDelta not adding additional columns in plugin database update
- $wpdb update query in plugin only updating one column
- Using ‘mysqli_connect’ ‘crashes’ WordPress client-side
- How to do database for download stats?
- Woocommerce Backend Search by Title and SKU
- How can I fetch data from another website to my wordpress website with mysql database
- problem with sql query
- Getting error “Warning: mysql_query(): Can’t connect to local MySQL server through socket ‘FILEPATH/cccatalog-plugin.php on line 1656”
- Deactivation Hook does not remove database
- External wpdb connections in different plugins on single page
- speed up pagination for huge database
- WordPress plugin: efficient way to store large data
- Plugin generating unexpected output – on WP mysql dump import
- WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version [closed]
- Integrating Custom Database with WordPress
- How to display results from a data table with an encrypted user id?
- add_action for publish_post doesn’t work
- Adding CASE in WP_Query
- how can we migrate wordpress 5.9 website from aws ec2 to new installed wp 5.9 oci compute
- Some error in mysql script ? Can’t working to create table
- How to get the custom field value using SQL query
- Need to know if my approach to designing a geneaology plug-in for wordpress makes sense
- WP Function does not trigger on Webhook API Call
- I created a plugin with ‘view page’ that uses MYSQL + PHP. When I use wp_insert_post(), it turns everything to HTML
- Cant create table on plugin activation
- WordPress UPDATE queries on MySQL database stuck
- Moving a few select DB tables to a new WP instance
- dbDelta not CREATING TABLE
- WordPress database problem wp_posts, primary key
- How much PHP and MySQL or MariaDB knowledge should I know to start writing WordPress themes and plug-ins and whatever else a beginner can edit?
- Delete user meta based on key value that is an array
- errno: 150 “Foreign key constraint is incorrectly formed” [closed]
- HyperDB failover Delay
- Re-writing MySQl query for execute faster
- Create Database Tables on Plugin Activation hook
- Create Array from data in the OPTIONS table
- Write mysql credentials in plugin
- Help with sorting and storing data on WordPress
- Slow WordPress admin panel with a total query time of 1664ms
- Linking Plugin Files to WP
- MySql Query for WordPress
- Woocommerce: Grab total revenue of a product over all orders
- Custom Table doesn’t create on plugin activation
- Using wp config to connect to a DB from a plugin
- how to search through plugin in wordpress cimy-user-extra-fields?
- Trying to insert a row from a Plugin
- 504/502 errors plauging our site
- How can I delete the options from DB when the plugin is deleted?
- Share or sync user table data with another user table
- How to change and edit users according to the extension in the URL
- Split Million WordPress Post’s Into Multiple Database Server
- Getting 504 Gateway Timeout Error on AWS Server! [closed]
- WordPress issue – data is not showing in wp-admin, but when searching through database, all the data is there