RailsConf 2024 - SQLite on Rails: From rails new to 50k concurrent... by Stephen Margheim Final

Create a high-performance Rails application with SQLite, from setup to scaling to 50,000 concurrent users, with expert guidance from Stephen Margheim at RailsConf 2024.

Key takeaways
  • Use rails new with the --database=sqlite3 flag to create a new Rails application with SQLite as the default database.
  • Use sqlite3 as the database adapter for your Rails application.
  • Set the default_timezone to UTC in your application configuration file to avoid unexpected behavior.
  • Use the rails db:create command to create the database schema.
  • Use the rails db:migrate command to execute the database migrations.
  • Use the rails db:seed command to seed the database with data.
  • Use the rails console command to interact with the database in a Rails console.
  • Set the strict_variables to true in your application configuration file to ensure that variables are strictly typed.
  • Use the rails test command to run your tests.
  • Use the rails coverage command to generate test coverage reports.
  • Set the rails_autodoc to true in your application configuration file to generate API documentation.
  • Use the rails doc command to generate API documentation.
  • Use the rails i18n command to manage translations.
  • Use the rails routing command to manage routing.
  • Use the rails sass command to manage stylesheets.
  • Use the rails scm command to manage source control.
  • Use the rails spec command to run your specifications.
  • Use the rails spin command to start a Rails server.
  • Use the rails test:recall command to run your tests.
  • Use the rails test:register command to register your tests.
  • Use the rails test:unregister command to unregister your tests.
  • Use the rails test:upgrade command to upgrade your tests.
  • Use the rails test:downgrade command to downgrade your tests.