Welcome Guest, Not a member yet? Register   Sign In
Loading the database class on demand.
#1

[eluser]megablue[/eluser]
Is there any elegant way to load the database class on demand whenever I trigger any db->method()? The page was generated from my own cache implementation when there is no query, it is waste of resources to load the database (about 100ms and extra 1MB memory on my machine to load and initialize the object).


Messages In This Thread
Loading the database class on demand. - by El Forum - 05-10-2010, 03:18 AM
Loading the database class on demand. - by El Forum - 05-10-2010, 06:31 AM
Loading the database class on demand. - by El Forum - 05-10-2010, 08:01 AM
Loading the database class on demand. - by El Forum - 05-10-2010, 09:54 AM
Loading the database class on demand. - by El Forum - 05-10-2010, 11:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB