First Look: Sharding in Rails 6.1

Rails 6.1 was released as a stable build not so long ago. One of the features I was interested in is the support for sharding.
In this video I take my first look at it.

00:00 Introduction
01:00 Setup
02:30 What is Sharding?
06:00 Configure and Create the DBs
08:35 Put data in the database
09:10 Create a model
09:50 Migrate & Seed data
11:40 Setup ApplicationRecord
14:00 Use a shard
17:00 Advanced shard selection
19:30 Wrap up

You can read about what sharding is here:

Some people online just talk – I just do. One of my major SaaS products out there is ( THE AutoResponder and Customer Management tool for Amazon Sellers. Join over 17,000 other Amazon Sellers and sign up today!

Looking for great hosting? I’ve been using DigitalOcean for 7 years and they have never let me down. Amazing.
Check them out here and get $100(!!!) free credits towards the cost of servers.

#techEntrepreneur #RubyOnRails #softwareDevelopment


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.