<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>y_n_m</author_name>
  <author_url>https://blog.hatena.ne.jp/y_n_m/</author_url>
  <blog_title>MNTSQ Techブログ</blog_title>
  <blog_url>https://tech.mntsq.co.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Ruby on Rails</anon>
  </categories>
  <description>こんにちは、MNTSQでサーバーサイドエンジニアのようなものをやっている西村です。今回は比較的簡単にRuby on Railsのアプリを高速化する方法を書いてみようと思います。 内容的にはタイトルのとおり、平易なものが多いのですが、頻度高く見かけるものをまとめてみました。 preload/include/eager_loadを利用してN+1を回避する Railsでは紐づくレコードが芋づる式になりがちで、N+1問題がよく発生します。弊社ではgrapeというgemを利用してAPIを作成していますが、レスポンスを組み立てるタイミングでN+1問題がよく発生します。例えば、以下のようなActiveRec…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.mntsq.co.jp%2Fentry%2Ffast-ruby-on-rails&quot; title=&quot;Ruby on Railsをかんたんスピードアップ - MNTSQ Techブログ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/y/y_n_m/20211020/20211020103925.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-10-22 14:00:00</published>
  <title>Ruby on Railsをかんたんスピードアップ</title>
  <type>rich</type>
  <url>https://tech.mntsq.co.jp/entry/fast-ruby-on-rails</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
