Re: OOP slow -- am I an idiot?
| From: | Richard Lynch | Date: | Thu, 12 Oct 2006 17:10:32 +0000 |
| Subject: | Re: OOP slow -- am I an idiot? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243035@lists.php.net to get a copy of this message | ||
On Thu, October 12, 2006 3:11 am, Tony Marston wrote:
> I have to disagree as well. There is absolutely nothing wrong which
> the
> approach of creating one class for each table in the database. It
> cannot be
> wrong for the simple reason THAT IT WORKS!
Only problem is that then you often end up making ONE INSTANCE for
each *row* in a large result set, and then you are in BIG TROUBLE.
IT DOES NOT WORK!
You've *got* to have some kind of other class that handles more than a
couple handsful of the data, for anything other than a trivial
application.
And if it was trivial to start with OOP is rarely the right answer.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?