• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PostgreSQL Master-Slave

#1
Hi guys, does anybody knows how to extend CI postgre driver to implement support of master-slave replication by standard query-builder class ? Is somewhere any tutorials or best practices which can cover this topic? thanks!
Reply

#2
(02-09-2019, 10:56 AM)KoRsar4eg Wrote: Hi guys, does anybody knows how to extend CI postgre driver to implement support of master-slave replication by standard query-builder class ? Is somewhere any tutorials or best practices which can cover this topic? thanks!

I believe you set this up in the db, not in your application.
Simpler is always better
Reply

#3
(02-09-2019, 03:07 PM)donpwinston Wrote:
(02-09-2019, 10:56 AM)KoRsar4eg Wrote: Hi guys, does anybody knows how to extend CI postgre driver to implement support of master-slave replication by standard query-builder class ? Is somewhere any tutorials or best practices which can cover this topic? thanks!

I believe you set this up in the db, not in your application.

I mean, for instance I have 3-4 slave servers and i want to load balance read queries between them, or implement algorithm for loop through slaves if one or couple are not available Smile
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.