Welcome Guest, Not a member yet? Register   Sign In
Connect to multiple database server by type of query (delete, insert, select, update)
#4

(07-06-2015, 10:46 AM)CroNiX Wrote: I'd do it slightly different than Kilishan, in only that I wouldn't load all 4 connections in the constructor. I'd load them individually in the respective methods that they are used since each request will only need one connection.

Very true! I did mention that my example wasn't the best performance Smile It was intended as a concept, but you're absolutely correct that's the best way to handle it. 
Reply


Messages In This Thread
RE: Connect to multiple database server by type of query (delete, insert, select, update) - by kilishan - 07-06-2015, 10:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB