<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>spacely_rec</author_name>
  <author_url>https://blog.hatena.ne.jp/spacely_rec/</author_url>
  <blog_title>Spacely Tech Blog</blog_title>
  <blog_url>https://tech.spacely.co.jp/</blog_url>
  <categories>
  </categories>
  <description>概要 弊社のサーバ(Ruby on Rails 6.1, Ruby2.7, MySQL5.7)環境にてデータベースの負荷が増加し、アラートが頻発しています。この問題を解決するために、 rails guide を読みながらリードレプリカの導入を検討しました。 このブログでは導入までの試行錯誤を記載します。導入前後の負荷の比較は記載していません。 開発環境に導入し、テストを実行したところ、GETでもレコードの作成、更新などDBにwriteしている部分ではReadOnlyErrorが発生するようになりました。 そのため、暫定対応として下記のようにwritingのconnected_toブロックで囲む…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.spacely.co.jp%2Fentry%2F2023%2F10%2F04%2F190605&quot; title=&quot;リードレプリカの導入に関する挑戦 - Spacely Tech Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-10-04 19:06:05</published>
  <title>リードレプリカの導入に関する挑戦</title>
  <type>rich</type>
  <url>https://tech.spacely.co.jp/entry/2023/10/04/190605</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
