Welcome Guest, Not a member yet? Register   Sign In
When to load database?
#4

[eluser]jleequeen[/eluser]
True, but I suppose I do it that way because the majority of my application use databases enxtensively, and the few pages that are totally static really don't suffer from any problems in speed. If I had to load it in one place or the other, I would choose the controller. If it's used it more than a couple methods, then I would just load it in the constructor. Otherwise, if it's only used in one or two methods, then you could just load it in those specific methods.


Messages In This Thread
When to load database? - by El Forum - 04-14-2011, 11:47 AM
When to load database? - by El Forum - 04-14-2011, 11:52 AM
When to load database? - by El Forum - 04-14-2011, 12:02 PM
When to load database? - by El Forum - 04-14-2011, 12:44 PM
When to load database? - by El Forum - 04-14-2011, 02:53 PM
When to load database? - by El Forum - 04-14-2011, 03:23 PM
When to load database? - by El Forum - 04-14-2011, 03:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB