mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ae9ab22a8f
clearTable is mainly used for clearing data between tests. In this case, there are very few or zero records, and DELETE FROM is quicker than TRUNCATE, which works by deleting and recreating the table. This materially speeds up test execution, at least on MySQL. |
||
---|---|---|
.. | ||
Database.php | ||
DatabaseException.php | ||
DBConnector.php | ||
DBQueryBuilder.php | ||
DBSchemaManager.php | ||
MySQLDatabase.php | ||
MySQLiConnector.php | ||
MySQLQuery.php | ||
MySQLQueryBuilder.php | ||
MySQLSchemaManager.php | ||
MySQLStatement.php | ||
PDOConnector.php | ||
PDOQuery.php | ||
Query.php |