[TYPO3-core] RFC: Bug #13508: Use exec_TRUNCATETABLEquery() instead of DELETE FROM throughout the core

Steffen Kamper ks at dislabs.de
Thu Feb 11 12:10:46 CET 2010


Hi,

we have imho 3 possibilities:

1) integrate truncate in DELETE, but don't do it automatic, add a 
parameter eg $useTruncate = TRUE so we don't have magic but control

2) use a new function for truncate

3) mix 1) and 2) and use TRUNCATE function inside delete when flag is true

My vote would be 2) as it's really clear. If you want to empty a table 
and reset all triggers then you should use the new function.

vg Steffen


More information about the TYPO3-team-core mailing list