I found your page via google searching for “describe” and “zend framework”. I noticed that ZF performs a surprisingly expensive “describe” query, just as you.
Two points from me:
1. I don’t think your solution is faster than the mysql query cache, which should be always turned on. With the query cache, two describe queries shouldn’t be that longer than one. But your extension of Zend_Db_Table is a nice idea.
2. Just change your db adapter from PDO_MYSQL to mysqli and ZF stops doing “describe” queries. It worked for me
Btw I think it is very anoying for most users that you have to register at your blog to post a comment. Turn this off and more users will post a comment
About Me
I’m Sameer Parwani a 25 year old web developer from Massachusetts. I aim to use this blog to contribute to the tech community with my own thoughts, tips, and insights. I am occasionally available for contract work. Check the about page for more.
Using Zend_Registry as a Zend_Cache Backend
November 22nd, 2008 at 10:56 pmHi,
I found your page via google searching for “describe” and “zend framework”. I noticed that ZF performs a surprisingly expensive “describe” query, just as you.
Two points from me:
1. I don’t think your solution is faster than the mysql query cache, which should be always turned on. With the query cache, two describe queries shouldn’t be that longer than one. But your extension of Zend_Db_Table is a nice idea.
2. Just change your db adapter from PDO_MYSQL to mysqli and ZF stops doing “describe” queries. It worked for me
Btw I think it is very anoying for most users that you have to register at your blog to post a comment. Turn this off and more users will post a comment