简体   繁体   中英

Knex Support for Read Replicas

Does Knex support routing queries to MySQL read replicas like Sequelize does ? If so, how can I accomplish this?

Not supported currently in knex (0.14).

To accomplish something similar you need to create multiple knex instances and explicitly send read queries to read replica knex instances and write queries to master instance.

There has been discussion about implementing this feature, but I don't think that anyone is currently working on it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM