<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanashun_dev</author_name>
  <author_url>https://blog.hatena.ne.jp/tanashun_dev/</author_url>
  <blog_title>ミツカリ技術ブログ</blog_title>
  <blog_url>https://tech-blog.mitsucari.com/</blog_url>
  <categories>
    <anon>rails</anon>
    <anon>bullet</anon>
    <anon>N+1</anon>
    <anon>パフォーマンス</anon>
  </categories>
  <description>はじめに こんにちは。ミツカリエンジニアのたなしゅんです。 Backendアプリケーションにおいて、N+1問題というのは基本のキでありながらパフォーマンス影響の大きい重要な問題です。 弊社ではBackendのAPIサーバにRuby on Railsを採用しています。 本記事ではRailsにおけるN+1問題を改善していく過程とその中で派生した問題について扱います。 検知用のgem bulletというN+1問題を検出してくれる有名なライブラリがあるのでそちらを使用しています。 github.com Bullet.raise = true 上記のように設定することで、Bulletによる検出があった場…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech-blog.mitsucari.com%2Fentry%2F2025%2F02%2F12%2F095402&quot; title=&quot;RailsのRspecでN+1をエラー扱いにするまでの戦い - ミツカリ技術ブログ&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>2025-02-12 09:54:02</published>
  <title>RailsのRspecでN+1をエラー扱いにするまでの戦い</title>
  <type>rich</type>
  <url>https://tech-blog.mitsucari.com/entry/2025/02/12/095402</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
