Loading the Example Dataset
We are almost ready to go! The final step before moving on is loading the example dataset into our data store(s). This is very important. The performance of an application is dramatically altered by the size of the dataset with which it operates. This is why you will be using a ready-to-use data set that, while significantly smaller than the one run on production by big companies, will hopefully be big enough to illustrate some of the real problems those huge corporations face when scaling their applications.
For that purpose, rails-performance-book provides a script to populate its own database. Following a Rails pattern, you will find the script at db/seeds.rb; the script loads into the relational database data ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access