There should not be any downside. The user ID is cast to int
in many places in the WP PHP files anyway.
But I don’t think this is a real performance problem. If your queries are slow, it might be more useful to inspect each of them and look for opportunities to improve the queries or to add indexes.
If your bottleneck is really IO on the file system of your DB host, consider finding a better DB server, because that will hit you in other cases too.
This issue has been raised on the WordPress Trac 14 years ago, and it was closed by Matt, the owner project leader …
in the hope that WP may someday be successful enough to need it
So if you ever get into the situation that your blog has every second person on the planet as a member, don’t forget to send Matt a Thank You!
Related Posts:
- How to properly insert data into custom table via plugin
- How does WordPress handle MySQL row lock errors?
- Can I explicitly specify ENGINE=InnoDB in WordPress?
- Bad Request (Invalid Hostname) on working server, database problem
- WooCommerce with thousands of products – site is very slow – optimize db queries? [closed]
- greatest() function returns undefined property
- How to write one comment and publish on every post using database or plugin?
- How to determine what is generating large amount of database queries?
- Help With MySQL to WPDB Query Conversion
- How can I perform high-level database merging for WordPress within continues delivery?
- WordPress Backend HA (Automatic failover)
- Automatic switch to backup database on fail
- Migrating to WordPress Recipe Plugin and Some SQL Issues
- Multiple instance of data in plugin custom database table on plugin activation
- Better ads plugin has 500.000 entries in wp_postmeta
- after wordpress update to 3.5+ i get many errors in plugin wpdb::prepare()
- dbDelta not adding additional columns in plugin database update
- Plugin has added weird data in wp_options, set to autoload
- Always get creating a new table with foreign key
- How to do database for download stats?
- DB Query not working in Plugin
- External wpdb connections in different plugins on single page
- WordPress plugin: efficient way to store large data
- 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
- What database state changes happen after a post is manually “updated” with no changes?
- Cant create table on plugin activation
- Performing CRUD operations on front end in wordpress
- Store GravityForm data in phpmyadmin (mysql)
- Moving a few select DB tables to a new WP instance
- WordPress database problem wp_posts, primary key
- HyperDB failover Delay
- Write mysql credentials in plugin
- Is saving multiple options or saving multiple items in one option better?
- How can I delete the options from DB when the plugin is deleted?
- How do I show data from gravity forms in my template? [closed]
- How to Add an Index to Plugin Database table
- Creating 20,000 Posts or Pages using a .csv file?
- Creating two database tables via plugin
- How to make sense of the active_plugins option_value to enable and disable certain plugins from the database?
- How can I reduce the amount of files loaded/included per plugin?
- Search and replace text across all posts
- Updating WordPress – the best approach (updating wp core, plugins and db)
- WordPress for a very large website
- How to store ACF custom fields data in a custom table
- Plugin Not Working, But Only On GoDaddy Hosted site
- WordPress plugin DB upgrade
- WordPress shortcodes & performance
- wordpress in nginx docker container connected to php:8-fpm container and mariadb container isn’t creating any tables on plugin activation
- Default Plugin Settings Not Writing to Database
- Get post by ASC from custome field DATE picker
- Retrieving a Value from a wp-database
- Need help restoring my WordPress blog
- WP plugins for building a database?
- Is it possible to create Custom Post plug-in?
- Delete query not working in plugin
- Will Gutenberg Have a Negative Impact on Page Speed?
- Enabling WP_USE_EXT_MYSQL to support old plugin
- How do I network enable a plugin for a multisite install via the database?
- import posts with dutch/special letters
- SQL to order by CPT results by user->display_name w/only user->ID known
- How can I change the meta_key for a particular piece of information?
- Enabling plugin failed because MySQL user do not have CREATE permissions
- w3 Total Cache not Caching – Requested URI is rejected [closed]
- Improving the perfomance of a plugin action
- Creating a CSV with PHP inside the plugin directory
- pagination on data fetched using SQL query
- Speeding SQL queries for a large database?
- One sub site is slow while all others load fine, same theme & plugins [closed]
- Using ‘mysqli_connect’ ‘crashes’ WordPress client-side
- WordPress stats: OWA plugin overhead in the future
- How to create plugin/ page that reads from database
- Assign all Post in Wp to a specific Category
- Storing The Data Collected by Ninja Forms into Another (custom) Database [closed]
- Comment Approve – Add custom function when comment is approved
- Is wp_deregister_script the best way to deal with unneeded plugins in a page?
- How to make a Product page without ordering and database
- JOIN and SUM different statement results (Mailster Database)
- How can I display selected content from a seperate database in an Activity style widget?
- WP Function does not trigger on Webhook API Call
- $wpdb->delete not working for me
- How to add specific script to WordPress webpage that will working with user input and databases
- Display a number value from mysql query in WP
- How to use WordPress header function and footer function and not load word press database
- How to securely controlling data without keeping it in postmeta?
- Accessing data from Google Cloud Datastore in WordPress site
- Login issue in WordPress
- errno: 150 “Foreign key constraint is incorrectly formed” [closed]
- get/show Last ID
- database – multiple wordpress installations using same database – can they share plugin settings?
- Create Database Tables on Plugin Activation hook
- Slow WordPress admin panel with a total query time of 1664ms
- Posts are deleted everyday at night
- Display Plugin information on specific url
- How to display blog posts only authored by the administrator
- how to show the data from a myqsl database in a post [closed]
- Text Wrapping in WPDataTables
- How can i store cache of wordpress a database request without plugins?