Improved data generator clear data performance

ref PROD-233
This commit is contained in:
Simon Backx 2023-12-12 17:34:29 +01:00 committed by Simon Backx
parent 51ee276e97
commit a3bbd579dd

View File

@ -95,7 +95,7 @@ class DataGenerator {
// Avoid deleting the admin user
await transaction(table).del().whereNot('id', '1');
} else {
await transaction(table).del();
await transaction(table).truncate();
}
}
}