|
Posted by NC on 02/16/06 04:30
J wrote:
> > > > PEAR:db would be a good PHP example.
> > >
> > > Yeah, it's a start ;)
> >
> > Nope, it's a dead end... Lots of completely avoidable overhead in an
> > effort to (supposedly) speed up development...
> >
>
> There's a block, where's the parry? Do you have an alternate suggestion?
>
> "Write your own code..." I'm expecting..
You write your own code regardless of whether you use an abstraction
layer or not. The amount of code you have to write is approximately
the same regardless of whether you use an abstraction layer or not; you
still issue commands for connecting to a DB server, choosing a DB,
running queries, and fetching their results. The difference is how
fast it happens and how much system resources get consumed in the
proces. Last times folks at phpLens tested it, PEAR:db had an overhead
of 150-170%:
http://phplens.com/lens/adodb/
Cheers,
NC
[Back to original message]
|