Although TRUNCATE TABLE is faster (in MySql), I believe it is not a standard SQL command. I'm working on an SQLite layer. It is almost ready. I've noticed that cache.inc uses once the TRUNCATE TABLE command and I've replaced it with DELETE FROM.

Best wishes,
Andrei.

CommentFileSizeAuthor
cache_25.patch586 bytesabautu
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drumm’s picture

Version: 5.1 » 6.x-dev

Please do not mark your own patches as 'ready to commit'.

However, this is true- http://dev.mysql.com/doc/refman/4.1/en/truncate.html

Committed to 5.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Hi Andrei, committed this patch to CVS HEAD. Looking forward to your work. :)

Anonymous’s picture

Status: Fixed » Closed (fixed)