WordPress.org

Ready to get started?Download WordPress

Plugin Directory

HyperDB

HyperDB is an advanced database class that supports replication, failover, load balancing, and partitioning.

1.1

  • Extended callbacks functionality
  • Added connection error callback
  • Added replication lag detection support

1.0

  • Removed support for WPMU and BackPress.
  • New class with inheritance: hyperdb extends wpdb.
  • New instantiation scheme: $wpdb = new hyperdb(); then include config. No more $db_* globals.
  • New configuration file name (db-config.php) and logic for locating it. (ABSPATH, dirname(ABSPATH), or pre-defined)
  • Added fallback to wpdb in case database config not found.
  • Renamed servers to databases in config in an attempt to reduce ambiguity.
  • Added config interface functions to hyperdb: add_database, add_table, add_callback.
  • Refactored db_server array to simplify finding a server.
  • Removed native support for datacenters and partitions. The same effects are accomplished by read/write parameters and dataset names.
  • Removed preg pattern support from $db_tables. Use callbacks instead.
  • Removed delay between connection retries and avoid immediate retry of same server when others are available to try.
  • Added connection stats.
  • Added save_query_callback for custom debug logging.
  • Refined SRTM granularity. Now only send reads to masters when the written table is involved.
  • Improved connection reuse logic and added mysql_ping to recover from "server has gone away".
  • Added min_tries to configure the minimum number of connection attempts before bailing.
  • Added WPDB_PATH constant. Define this if you'd rather not use ABSPATH . WPINC . '/wp-db.php'.

Requires: 2.3 or higher
Compatible up to: 4.0
Last Updated: 2014-9-4
Downloads: 17,160

Ratings

4 stars
4.5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

67,3,2
100,1,1
50,2,1
100,2,2
100,1,1
0,1,0
100,1,1