Databases in Ruby on Rails: Advanced Concepts

Programmers who want to learn to use advanced features available for working with databases in Ruby on Rails

Prerequisite
None

Expected Duration
69 minutes

Description
This course covers how to use advanced features to work with Ruby on Rails databases. It covers star schemas, lists and calendar tables, multi-valued dimensions as well as columnar databases. It also covers working with the InnoDB engine as well as managing deadlocks, scan locks and concurrency.

Objective

Star Schemas

  • start the course
  • demonstrates the uses of Star Schemas and explain an example showing Fact and Dimension tables
  • up a range of models through the use of a Star Schema
  • use a star schema in a Ruby on Rails application for warehouse type queries

Lists and Calendar Dates

  • represent a child table of objects as an ordered list in Ruby on Rails
  • use Ruby on Rails to build a Calendar table with multiple fields, and use code to insert data into the table

Multi-Valued Dimensions

  • create a table for multi-valued dimensions in Ruby on Rails
  • write a query for data stored as multi-valued dimensions in a database in Ruby on Rails

Columnar Databases

  • work with a columnar database using Ruby on Rails.

The InnoDB Engine

  • set up the InnoDB engine in Ruby on Rails to support transactions that the default MySQL storage engine otherwise doesn’t support
  • work with InnoDB locking in Rails using a transaction and a controller

Troubleshooting Locking

  • resolve deadlocks when working with databases in Ruby on Rails
  • uses various tools and ways to avoid table scans and negate table locks in Ruby on Rails databases

Concurrency

  • outline ways to efficiently deploy multi-threaded Ruby on Rails applications on a multi-threaded server and a multi-process server.
  • fine tune your application to effectively deal with concurrent requests in Ruby on Rails
  • a unique key constraint and then have the Ruby on Rails model validate it with a couple of simple commands
  • index a Ruby on Rails database variable as a foreign key

Practice: Creating and Using a Star Schema

  • create and use a Star Schema

MONTHLY SUBSCRIPTION

$129/month
 

ANNUAL SUBSCRIPTION

$1295/year

Multi-license discounts available for Annual and Monthly subscriptions.