Add independent connections for reading and writing to the database in WordPress

Use HyperDB

  • An open source DB mechanism plugin that supports replication, failover, load balancing, and partitioning.

Link – https://github.com/Automattic/HyperDB

tech