[TYPO3-core] RFC #13467: add getField() function to database API

Xavier Perseguers typo3 at perseguers.ch
Mon Apr 5 18:17:54 CEST 2010


>> IMO it would make sense ... if we wouldn't care about some lines more or
>> less, we could drop getRows() as well and use query() instead. ;-)
> In fact, I stopped using getRows(), as it is less performant, as I'm
> gonna loop through the rows again anyway at some point. I used getRows()
> for +60K fe_users (for an export module) and I got a memory_limit
> problem. After switching back to exec_SELECTquery and manually iterating
> over the DB result, it worked like a charm :).
>
> However, I'd love to get more input from our DB (API) experts Masi,
> Xavier, Dmitry, if we should extend t3lib_db.

Well, to be honest, I usually use exec_SELECTquery too... I'd say that all these abstractions do more harm than good and that the API should stay simple. But I don't want to give a veto to this patch, 
I'm just not going to give a +1 for something I won't use anyway.

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en


More information about the TYPO3-team-core mailing list