Welcome Guest, Not a member yet? Register   Sign In
Active record class VS simple query
#9

[eluser]BrianDHall[/eluser]
[quote author="saidai jagan" date="1257415933"]Yeah i also tested in the live server.
The query() method running at 0.0465 secs.
but the get() runs at 0.0355 secs.
But i thought query() is faster now i get to kno get() is much much better for me.
Is this a valid point?[/quote]

Well, that's 0.011 seconds difference - if you run the query 10 times that is 1/10th of 1 second. Are you running an application where such a load actually matters, or is most of your servers capacity unused anyway? Is lag time running queries noticably slowing your applications response time?

If it is a constraint of the system, it matters - otherwise, it doesn't.

The principle of avoiding premature optimization is to code for maximum development speed, then only when performance becomes an issue do you go back and seek to optimize only if it makes any sense.


Messages In This Thread
Active record class VS simple query - by El Forum - 11-02-2009, 04:56 AM
Active record class VS simple query - by El Forum - 11-02-2009, 05:01 AM
Active record class VS simple query - by El Forum - 11-02-2009, 05:09 AM
Active record class VS simple query - by El Forum - 11-02-2009, 06:23 AM
Active record class VS simple query - by El Forum - 11-02-2009, 09:18 AM
Active record class VS simple query - by El Forum - 11-03-2009, 02:38 AM
Active record class VS simple query - by El Forum - 11-04-2009, 02:07 PM
Active record class VS simple query - by El Forum - 11-04-2009, 10:12 PM
Active record class VS simple query - by El Forum - 11-04-2009, 11:30 PM
Active record class VS simple query - by El Forum - 11-05-2009, 12:07 AM
Active record class VS simple query - by El Forum - 11-05-2009, 08:55 AM
Active record class VS simple query - by El Forum - 11-05-2009, 11:14 AM
Active record class VS simple query - by El Forum - 11-05-2009, 12:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB