[TYPO3-dev] How standard compliant is "truncate"?

Dmitry Dulepov dmitry at typo3.org
Thu Feb 5 16:11:54 CET 2009


Hi!

ries van Twisk wrote:
> For an InnoDB table before version 5.0.3, InnoDB processes TRUNCATE
> TABLE by deleting rows one by one. As of MySQL 5.0.3, row by row
> deletion is used only if there are any FOREIGN KEY constraints that
> reference the table. If there are no FOREIGN KEY constraints, InnoDB
> performs fast truncation by dropping the original table and creating an
> empty one with the same definition, which is much faster than deleting
> rows one by one

How does it contradict my words in regard to TYPO3? TYPO3 does not use referral integrity, so for TYPO3 TRUNCATE is equivalent to DELETE on InnoDB.

-- 
Dmitry Dulepov
TYPO3 core team
"Sometimes they go bad. No one knows why" (Cameron, TSCC, "Dungeons&Dragons")




More information about the TYPO3-dev mailing list