RE: [PEAR] Pear Doubt

From: Date: Mon, 20 Jan 2003 15:28:25 +0000
Subject: RE: [PEAR] Pear Doubt
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3362@lists.php.net to get a copy of this message
Well, some benchmarks were run and indeed they showed that ADODB is a bit faster than PEAR::DB. Now, your friend is saying that you can always code something that better suits your needs and does it faster. This is true for everything, projects tend to be "iwant-it-all-for-yesterday-at-no-cost" type of thing. In that case recoding everytthing makes no sense. YOu use a library for the ease it brings you, if one prefers to recode everything then one should just do it ;)) Pear::Db is not that difficult to learn, i've never used adodb but i expect to take a tiny bit of time to learn, as any library. As to the argument that ADODB is used in a commercial product hence the better quality does not stand imho. Many pear libraries are here because people use them at their work, in production. Some people may even develop them for commercial products afaik. That said, do not mistake me, i'm not saying one has a higher quality then the other and vice-versa ;) Arnaud. > Hi All, > > One of my friend told something about Pear which is > bothering me. Just > want to Verify, can this be true. > > Is ADODB faster than Pear. > > <snip> > > Well PEAR might sound like a good thing, but it is not always the best > solution. > > In the area of DB Abstraction ADODB is much more efficient and my > understanding is that the library is at least partially > developed by someone > using it for a commercial product...ie there is good reason > to code it well > and keep it maintained. > > Not all hosting providers are going to properly setup PEAR or > keep a very > current version available. I know you can do it on your own, > but it's yet > another thing to keep someone from using it. > > Often you don't need all the weight of the PEAR libraries to > get a job done > and it can be better to write your own or at least borrow > from thier work to > make your own. I don't like to reinvent the wheel but > sometimes you can > make a much better wheel to suit your needs ;-] > > </snip> > > <snip> > > The PostNuke www.postnuke.com project struggled with the PEAR > vs. ADODB > issue for a bit and choose ADODB in the end. Someone during > that time ran > some benchmarks and it showed that ADODB was a bit better in > speed etc. > > It is very easy to use and you can switch db's with a single line of > code...I think over 12 dbs are supported currently. I used > it recently and > found it easy to learn how things are done in ADODB and for > projects that > need portability, I plan on using it. Your still better > writing code for > one db if perf is your goal and not portability. > > </snip> > > Have a great day. > > Karthikeyan B

« previous php.pear.general (#3362) next »