Skip to content

Draft: Investigate support for many application shards

Kamil Trzciński requested to merge rails-6-1-many-shards into rails-6-1-shard-one

Story

This is:

This will:

  • set-up 4 application shards
  • use a single instance-wide database

To provision:

bin/rake db:prepare
bin/rails console
NamespaceShard.random_shard { User.create!(name: "ayufan", username: "ayufan", email: "ayufan@ayufan.eu", password: "aaaa1234", admin: true).update!(confirmed_at: Time.now) }

You can now create new top-level groups, and play with them.

Edited by Thong Kuah

Merge request reports