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 run SQL queries on a WordPress web page? [closed]
- Delete query not working in plugin
- How to remove traces from widget during uninstallation
- Will Gutenberg Have a Negative Impact on Page Speed?
- 306 MB of wp_options occupied by WordPress SEO Plugin, is that normal? [closed]
- 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
- Enabling WP_USE_EXT_MYSQL to support old plugin
- how to access all user dashboard on fronted page [closed]
- Insert data from .sql file in wordpress plugin
- WordPress + JavaScipt + AJAX + MySQL: insert query for form
- 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?
- WordPress Integration with Google Groups
- Enabling plugin failed because MySQL user do not have CREATE permissions
- Create a table with wordpress plugin boilerplate
- wp_editor content in plugin options page
- WordPress page and plugin list using sql query
- How to prevent/delay MySQL connections when an object cache is used?
- How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]
- WordPress and a secondary database?
- WordPress plugin creating database in localhost but not on real host
- Why this function not working for install database on plugin activation
- plugin code is pulling information from database in one instance and not in other. What is wrong?
- “Master” WordPress Multisite – Database Sync
- w3 Total Cache not Caching – Requested URI is rejected [closed]
- WP-DownloadManager – Query most download per week/month etc
- How to create multiple database tables on plugin activation?
- Improving the perfomance of a plugin action
- Can I create a table on my DB without creating a plugin?
- WordPress : Explain Plugins & Theme string value in database
- Is it necessary to auto delete my WP plugin database tables when users deactivate/delete my plugin?
- Namespaced shortcode?
- Does deleting a Plugin via the WordPress admin ‘completely’ remove the code?
- Errors when trying to use a plugin to write to the database
- Creating a CSV with PHP inside the plugin directory
- _prime_post_caches in wordpress
- pagination on data fetched using SQL query
- Plugins in WP_Options but not Active
- Speeding SQL queries for a large database?
- How do i edit the plugin files in DataBase via phpMyAdmin?
- WordPress as a data-store?
- How to insert and call new data in wordpress website database through a plugin
- Cannot get wpdb data (Error in a simple fuction) [closed]
- Mass SQL WordPress Meta Key deletion
- Gathering and logging data from a plugin: how to do it without race conditions?
- How to pass the API key to the client from the database? [closed]
- Notice: Uninitialized string offset: 0 in social sharing mu-plugin
- WPDB: Update table
- Issue running db create table query from static method
- Problem of encoding characters (apostrophes) in my posts publications
- Separate database for a wordpress plugin
- Is there a rule for wordpress plugins developers to not do any database changes upon update?
- How to keep variable `$post` to using in another file
- Does heavy theme and plugins affect server’s response time? [closed]
- One sub site is slow while all others load fine, same theme & plugins [closed]
- Using ‘mysqli_connect’ ‘crashes’ WordPress client-side
- Updating options into the wp database performance
- What are the performance hiccups when building plugins?
- Making my plugin create a page?
- Ajax save data to database on document ready, no data being saved