3

I use Adodb and Active Record for database abstraction. I have started to use Zend Framework, and one of the reasons I like it so much is due to it's "Use at Will" architecture which allows me to continue using Adodb rather than Zend's db_table functionality.

I have taken a look at Zend_DB_Table on paper, but really want to know from someone that has experience in them both, what the differences are and if one is better? Is it worth switching to db_table?

Many thanks in advance.

JonB
  • 1,320
  • 2
  • 15
  • 30

1 Answers1

0

i dont know Adodb , but one of the nice Features about Zend_Db_Table is that it is used system-wide. You can set an DefaultAdapter in your Bootstrap an all Objects extending Zend_Db_Table_Abstract are able to use the db Adapter.

I realy love Zend_Db_Table, the only problem is the amount of metadata send every requests, but you can handle this with some caching.

karim79
  • 339,989
  • 67
  • 413
  • 406
opHASnoNAME
  • 20,224
  • 26
  • 98
  • 143
  • Thanks for your reply. Does Zend_DB_Table implement caching? – JonB Aug 18 '09 at 08:44
  • Yes Zend_Db_Table_Abstract::setDefaultMetadataCache($cache); See docu for more info – opHASnoNAME Aug 18 '09 at 09:03
  • Uhh. That's not really the caching he's asking about. The meta data cache is exactly that--`Zend_Db_Table` needs information about the table, and that's just a cache so it doesn't have to perform a `DESCRIBE TABLE` on every single request. – jason Aug 18 '09 at 14:00
  • Ah, ok. So the actual data isn't cached? – JonB Aug 24 '09 at 10:41
  • No, you have to configure zend_cache for it. http://framework.zend.com/manual/en/zend.cache.html – opHASnoNAME Aug 25 '09 at 04:21