Switching database connection between readonly one and writable one.
https://github.com/eagletmt/switch_point
Suppose you have 4 databases: db-blog-master, db-blog-slave, db-comment-master and db-comment-slave. Article model and Category model are stored in db-blog-{master,slave} and Comment model is stored in db-comment-{master,slave}.
No comments:
Post a Comment