But some time in my project i use to write like this type of code in
controller......

$this->ModelName->query();

Whether this is good habit or i have to avoid this.....

if i am using this type of code in my most of the controller...is it any
problem on achitecture and coding standards

On Thu, Jan 13, 2011 at 11:33 AM, PHPMine <[email protected]> wrote:

> actually there is a slight performance increase when using $this-
> >query($sql). However, its like the size of an Atom's left big toe. if
> you are looking for performance increase take a look at
>
>
> http://www.pseudocoder.com/archives/2009/03/17/8-ways-to-speed-up-cakephp-apps/
>
> and also follow semantics for your DB structure. dont use varchar(255)
> if you know you are only gonna ever use 50 characters. take a look at
>
> http://forge.mysql.com/wiki/Top10SQLPerformanceTips
>
> let us know if those links help
>
> On Jan 13, 12:47 am, "Gopinath T.M" <[email protected]> wrote:
> > in whole project i am doing the same methos like
> "$this->query()"...whether
> > this will make any problem by performance or achitecture
> >
> > On Thu, Jan 13, 2011 at 10:11 AM, Amit Badkas <[email protected]
> >wrote:
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > > Hi,
> >
> > > Sure, you can do that by using $this->query() in the model.
> >
> > > Amit Badkas
> >
> > > PHP Applications for E-Biz:http://www.sanisoft.com
> >
> > > On Wed, Jan 12, 2011 at 6:49 PM, Gopinath T.M <[email protected]
> >wrote:
> >
> > >> Shall we use model without association...instead of association shall
> > >> we use direct query in model
> >
> > >> 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]<cake-php%[email protected]>
> <cake-php%[email protected] om>For more options, visit this
> group at
> > >>http://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]<cake-php%[email protected]>
> <cake-php%[email protected] om>For more options, visit this
> group at
> > >http://groups.google.com/group/cake-php?hl=en
> >
> > --
> > Regards
> > Gopinath T.M
> > 9944944659
>
> 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]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>



-- 
Regards
Gopinath T.M
9944944659

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