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

Xavier Perseguers typo3 at perseguers.ch
Thu Feb 11 11:24:54 CET 2010


Hi,

> May be today TRUNCATE is faster and tomorrow it is not. This handling
> should be hidden inside the API, not inside every extension. Developers
> must not care what they use: DELETE or TRUNCATE. They must have exactly
> *one* way to do their task, not many ways. The system should decide on
> the implementation of DELETE, not the developer.
>
> You know the phrase: "be simple and people will like it". This is what I
> try to do with my -1 to this RFC: be simple to developers :) Don't make
> them think when it is not necessary.

OK, I agree.

Christian? Do you agree too? Can you change this patch to use Dmitry's 
suggestion?

I'll rework #13504 a bit anyway...

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


More information about the TYPO3-team-core mailing list