Oct. 25, 2023, 12:57 p.m. | V

DEV Community dev.to

When working on large-scale projects, quickly creating test data or dummy data can be crucial. In this article, we will explore different methods to efficiently create 100,000 records in Ruby on Rails.





Data Set Overview


For today's benchmark, we will start with the Postgres database used in my previous article:



# db/schema.rb
create_table "accounts", force: :cascade do |t|
t.string "first_name"
t.string "last_name"
t.string "phone"
t.string "email"
t.string "role"
end


By the way, if you haven't read my previous article …

article beginners benchmark data database data set explore guide overview performance postgres projects rails records ruby ruby on rails scale set test tutorial

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

#13721 - Data Engineer - AI Model Testing

@ Qualitest | Miami, Florida, United States

Elasticsearch Administrator

@ ManTech | 201BF - Customer Site, Chantilly, VA