this is nothing compared to not using lazyloading on models
like 0.0000001% :)
so I wouldn't bother

i am sure it can be slightly optimized (caching?), though.


On 15 Okt., 13:02, Jeremy Burns | Class Outfit
<[email protected]> wrote:
> I have thought of doing something like before, but I can't help thinking that 
> adding in a 'check which environment this is and change some settings' 
> process is a tiny yet present overhead in the production instance. Maybe I'm 
> just a coding skin flint ;-)
>
> Jeremy Burns
> Class Outfit
>
> [email protected]http://www.classoutfit.com
>
> On 15 Oct 2010, at 11:58, euromark wrote:
>
>
>
> > you may also setup something like this
> >http://www.dereuromark.de/2010/08/17/development-vs-productive-setup/
> > it will automatically switch to the setting of the current environment
>
> > On 15 Okt., 11:19, Jeremy Burns | Class Outfit
> > <[email protected]> wrote:
> >> From the 1.3 guide:http://book.cakephp.org/view/922/Database-Configuration
>
> >> Jeremy Burns
> >> Class Outfit
>
> >> [email protected]http://www.classoutfit.com
>
> >> On 15 Oct 2010, at 10:04, MissYeh wrote:
>
> >>> You can do that by setting the dbconfig in a specific model that needs
> >>> another db using the var $useDbConfig
>
> >>> See for more infohttp://book.cakephp.org/view/310/Configuration
>
> >>> Or here is an article about changing database configuration on the
> >>> fly:
> >>>http://insanityville.com/2010/04/how-to-switch-between-databases-in-c...
>
> >>> Hope this helps!
>
> >>> Kana
>
> >>> On Oct 15, 9:49 am, psybear83 <[email protected]> wrote:
> >>>> Hi everybody
>
> >>>> Is there an easy way to tell CakePHP to use another db setting instead
> >>>> of $default? Maybe something like
>
> >>>> Configure::write('please.let.me.use.this.database', 'test');
>
> >>>> Thanks a lot
> >>>> Josh
>
> >>> Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others 
> >>> with their CakePHP related questions.
>
> >>> You received this message because you are subscribed to the Google Groups 
> >>> "CakePHP" group.
> >>> To post to this group, send email to [email protected]
> >>> To unsubscribe from this group, send email to
> >>> [email protected] For more options, visit this group 
> >>> athttp://groups.google.com/group/cake-php?hl=en
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others 
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups 
> > "CakePHP" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected] For more options, visit this group 
> > athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to