Why should I use PEAR::DB when I can use model classes implemented in a framework like Zend, CakePHP or Yii?
-
These days many different frameworks are providing comfortable database abstraction layer, for-example cakephp provides find(), so why should I still consider using PEAR::DB. CakePHP Find reference:http://book.cakephp.org/view/1018/find Is PEAR::DB better in terms of performance as compared to model classes implemented by frameworks?
-
Answer:
<msaads> I am working on a very cumbersome website that is created using a framework. It has response time issues, plus there are many big queries being executed. Sphinx is used, but it seems not sufficient. <tom[]> if the problem is big queries, the abstraction layer win't make any difference <msaads> I was thinking the same <tom[]> the performance improvements you need will come from improving the queries, restructuring the schema, using indexes correctly <tom[]> the normal DB stuff <tom[]> or buy faster hardware <msaads> Thanks tom for the tips <tom[]> $500 for SSD can make a huge difference <tom[]> going back to the stone ages with PEAR won't help <tom[]> you are welcome!
Muhammad Saad Siddiqui at Quora Visit the source
Other answers
Some frameworks are known to have performance issues, but usually what slows down websites of a certain size is the database. In 99% of all cases, that's because of badly (or according to IT theory) designed database schemes. Faster hardware can solve those issues temporarily, but you don't want to go down that path. Optimize first, then upgrade your hardware if you must, or even better: redesign your system for scalability (RDS etc.). Considering issues regarding many frameworks database components: Make sure you properly utilize all available caching options for metadata and read-only data to save a lot of processing time. PEAR components in general have a high quality, but they are also often outdated in terms of PHP features. For the sake of compatibility, most PEAR components are stuck in the 5.3 age, which might or might not be an issue for you.
Philipp C. Gérard
Related Q & A:
- Why do i get this message when i...send sms: Phone number cannot receive SMS messages?Best solution by Yahoo! Answers
- Why do I pee a little when I sneeze, even though I'm not pregnant?Best solution by answers.yahoo.com
- Is there any why I can use my Sony Handycam as a webcam?Best solution by Yahoo! Answers
- Why is my PC internet slow when I use Xbox live?Best solution by answers.yahoo.com
- How can I use a HDMI when my TV/Monitor doesn't have internal speakers?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.