[TYPO3-dev] Questions about exec_PREPAREquery

Xavier Perseguers xavier at typo3.org
Mon May 23 07:49:49 CEST 2011


Hello Stefan,

> is there someone who can explain me a little bit about the new function
> exec_PREPAREDquery?
>
> Is it faster? Does it use caching? Performance?

At the moment, it is faster when you use DBAL, aka not a MySQL database.

> Is it only an optimization of SQL_Queries? (not faster, but a better
> style in code)

Definitively!

> Is it the first step to include mysqli_prepare to TYPO3 in future?

This would be the idea, yes.

> In short: When or why should I use this function?

Whenever you can!

Regards

-- 
Xavier Perseguers
Release Manager TYPO3 4.6

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org





More information about the TYPO3-dev mailing list