エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Atrae Tech Blog — Ruby on Railsで複数DBやってみたい
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Atrae Tech Blog — Ruby on Railsで複数DBやってみたい
We are the tech members of Atrae Inc. This tech blog contains awesome information around tech of ... We are the tech members of Atrae Inc. This tech blog contains awesome information around tech of our concern. 遠矢です。 複数のDBをRailsから扱いたいときってありますよね。 今日はそんな「複数DB」についてですー 複数DBの種類テーブルを別のDBに分割する(DB分割)シャーディングmaster-slave 構成今日お話するのは「DB分割」に関してです。 前提あるDBで運用しているアプリの特定のモデルだけ別のDBで管理する実装方法1. database.ymlを書くもともとあるDBのdatabase.ymlはこんな感じだとして、 development: adapter: mysql2 encoding: utf8 reconnect: false database: data