Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Read and Write Database Connection
#4

[eluser]majidmx[/eluser]
Hi,

Actually that is exactly what I was thinking for when we faced the same problem in our application. I wanted to modify the DB class itself and there I could make the decision of using WRITE DB or READ DB.
But in our case we have some sections of the website in need of real-time checking with database records, and as we don't have the circular replication [for the same reason], I need some sections to do the read and write both from the same DB.

All these could be added as exceptions to the CI's DB class, but actually it is a trade off. If you hack the core it needs more attention on maintenance and upgrading the core, but it is less hassle of updating the code.
If you take the time to update the code it is easier to maintain but more work to do.
If you don't have so many exceptions in your code, then go for hacking the core, if you hacked it let us know how it goes and put some tips here for future use.

Thanks,
MajiD


Messages In This Thread
[SOLVED] Read and Write Database Connection - by El Forum - 11-13-2009, 06:22 AM
[SOLVED] Read and Write Database Connection - by El Forum - 11-16-2009, 01:06 PM
[SOLVED] Read and Write Database Connection - by El Forum - 12-21-2009, 01:53 AM
[SOLVED] Read and Write Database Connection - by El Forum - 12-21-2009, 02:06 AM
[SOLVED] Read and Write Database Connection - by El Forum - 01-13-2010, 12:29 AM
[SOLVED] Read and Write Database Connection - by El Forum - 01-13-2010, 12:20 PM
[SOLVED] Read and Write Database Connection - by El Forum - 01-14-2010, 10:28 PM
[SOLVED] Read and Write Database Connection - by El Forum - 01-15-2010, 01:49 AM
[SOLVED] Read and Write Database Connection - by El Forum - 01-15-2010, 02:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB