insert_all 或 active_record-import 集成
作者: Amnesthesia创建于 2025年10月28日更新于 2026年6月3日
标签feature
Problem this feature will solve
When inserting large amounts of data, or running a large test suite where a lot of lists are created, this is generally slow because each record is created individually, and then callbacks are fired, which doesn't scale very well.
内容来源: thoughtbot/factory_bot