Database component

WordPress database abstraction is implemented at wp-db.php.

Recent posts on the make/core blog

View all posts tagged database.

159 open tickets in the Database component

Create a new ticket
Milestonedefect (bug)enhancementfeature request
No milestone9110
Awaiting Review593810
Future Release12162
7.3110
Total816612
159 open tickets. Last 7 days: +0 tickets

43 tickets that have no replies

View list on Trac
  • #28139  WP MU legacy problems: missing database tables administration multisite
  • #28591  dbDelta Non-literal DEFAULT not working (CURRENT_TIMESTAMP)
  • #31759  Allow to set $allow_bail when creating new wpdb object to handle connection error silently
  • #32868  Consider running utf8mb4 conversion on each database update
  • #35256  $wpdb->insert_id equals 0
  • #39273  Updating to 4.7 can break serialized data because $wpdb->determine_charset now forces utf8 when DB_CHARSET is set to utf8mb4
  • #39748  Function to insert or update DB value
  • #40150  VARCHAR/TEXT inefficiencies
  • #42703  WP_Query: Swap parsing date into own method
  • #44292  Make use of protected process_fields
  • #44973  Issues with $wpdb->get_col_info
  • #46452  dbDelta given the same PRIMARY KEY and normal KEY produces no error, reports table created successfully, but the table is not created
  • #46565  Mixed engine in tables, could bring to major WP failure! Also there is a small fix that could avoid that.
  • #46576  short-circuit filter for dbDelta
  • #46739  post attributes order not working correctly
  • #46923  $wpdb->get_var() — empty sting becomes a NULL
  • #46932  dbDelta does not account for MySQL keywords being used as key names administration
  • #47818  $wpdb should update ->insert_id also when `LAST_INSERT_ID(...)` is found
  • #47994  The additions of a new wp_posts table columns called post_level and post_patriarch
  • #49363  wpdb::query() does not detect LOAD DATA as an insert statement type
  • #49482  Non-english slug can sometimes cause an error in WordPress query
  • #49654  maybe_drop_table
  • #51762  Unix authentication support via unix_socket
  • #52527  Better RAM handling in wp-db.php
  • #53033  Remove comments, ping, to_ping columns from posts table
  • #53320  Why delete_metadata and update_metadata slow performance? performance
  • #54235  Script for handling metadata in wp_postmeta
  • #54560  Return null from wpdb::get_results when query fails
  • #54627  Adding More Timestamp columns to database
  • #54834  Mysql gone away when importing DB on create wp_posts indexes
  • #55202  A proper (error) message should be show when mysql setting autocommit=0
  • #55907  Failed to insert log entry: value too long
  • #55938  WP prefix on installation - instructions to be indicated
  • #57000  wp_usermeta table is emptied because of a wrong query being executed
  • #57072  WordPress 6.1 uses wrong database collation
  • #58694  Enhancement in wordpress Database API
  • #58826  Please add a default post relations table
  • #59106  Add secondary index on `wp_posts` table to improve media queries performance
  • #59281  Support for Database Cursor
  • #59639  Dedicated tables for media libary performance sustainability
  • #59974  MAX_JOIN_SIZE wp-blog-header.php
  • #60254  Add filter to class-wpdb.php#query that allows to return data from filter return value
  • #62575  Prints SQL/DB error limit last_query too long performance privacy php-compatibility

2 tickets slated for 7.3

View list in Trac
  • #15499  Add an index for get_lastpostmodified query performance
  • #63678  WordPress redirect to wp-admin/install.php when a user is rate limited in mysql

Component maintainers

Component maintainers:

Component maintainers are vital to keeping WordPress development running as smoothly as possible. They triage new tickets, look after existing ones, spearhead or mentor tasks, pitch new ideas, curate roadmaps, and provide feedback to other contributors. Longtime maintainers with a deep understanding of particular areas of Core are always seeking to mentor others to impart their knowledge. Many contributors help maintain one or more components.

Help maintain this component

Want to help maintain this component? There are several ways to get involved.

Contributors following this component: