2009年9月10日星期四

[fw-db] A method to disable a row auto-refresh

Hi

I've seen every time i save a Zend_Db_Table_Row, an extra SELECT is executed to reload the row's data.

In terms of performance, i suggest to lazy load the row from db only if we want to access again to any of the row attributes. It's useless to have an extra SELECT if we don't want to access again to the row.

Is there any stopper to implement this feature?

Something like Zend_Db_Table_Row::setAutoRefresh(true|false);

Thanks

--
Xavier Vidal Piera
Director Tècnic de Citrusparadis.com - Grupo Intercom
Enginyer Tècnic Informàtic de Gestió
Tècnic Especialista Informàtic d'equips
xavividal@gmail.com
610.68.41.78

没有评论: