A combination of examples to compare count
, size
, length
and different methods of counts preloading.
-
Install the dependencies with
bundle install
. -
Database setup - run the command:
ruby db/setup.rb
- Run the examples with
ruby examples/<file name>
. For example:
ruby example/00_example.rb
- Change the seeds on
db/seeds.rb
and re-runruby db/setup.rb
to test different scenarios.