You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have about 150 tables and are using PostgreSQL. After switching to a cloud development VM with probable slower Hard Drive access, we noticed a delay for starting the test suite each time.
We saw the TRUNCATE table statements in Test log:
And found, that factory_bot-preload will truncate all table every time. In sum, that took us 3 extra seconds boot time.
We have about 150 tables and are using PostgreSQL. After switching to a cloud development VM with probable slower Hard Drive access, we noticed a delay for starting the test suite each time.
We saw the TRUNCATE table statements in Test log:
And found, that factory_bot-preload will truncate all table every time. In sum, that took us 3 extra seconds boot time.
Environment
Workaround
We only use 3 preload factories that touches only 4 tables, so we overrode the tables that FactoryBot::Preload truncates:
Ideas for a full fix
The text was updated successfully, but these errors were encountered: