Closed antstorm closed 9 years ago
.destroy_all initializes every object before deleting it, since there are no relations or callbacks that is not needed.
.destroy_all
Using .delete_all instead will simply execute DELETE FROM posts request, which is much faster.
.delete_all
DELETE FROM posts
Awesome. Great call. Merged and deployed!
.destroy_all
initializes every object before deleting it, since there are no relations or callbacks that is not needed.Using
.delete_all
instead will simply executeDELETE FROM posts
request, which is much faster.