<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>diggle-honda</author_name>
  <author_url>https://blog.hatena.ne.jp/diggle-honda/</author_url>
  <blog_title>DIGGLE開発者ブログ</blog_title>
  <blog_url>https://diggle.engineer/</blog_url>
  <categories>
  </categories>
  <description>こんにちは。DIGGLEのエンジニアのhondaです。 Ruby on Rails Advent Calendar 2022の12日目の記事です。 Advent Calendar初参加です。 はじめに Railsで開発している方にはN+1問題というのはおなじみだと思います。(説明は割愛します) そのためincludesやeager_load, joinsなどのN+1問題を起こさないためのメソッドに関する理解は必須だと思います。 自分もそれぞれの意味を把握して使い分ける程度にはわかっているつもりだったのですが、その理解が甘かったのでソートした時に意図した結果を取得できていませんでした。 今回はそ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdiggle.engineer%2Fentry%2Frails-sort-specifications&quot; title=&quot;RailsのJOIN方法の違いでソートしたときに意図した結果を取得できてなかった話 - DIGGLE開発者ブログ&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/d/diggle-honda/20221204/20221204184728.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-12-12 00:00:00</published>
  <title>RailsのJOIN方法の違いでソートしたときに意図した結果を取得できてなかった話</title>
  <type>rich</type>
  <url>https://diggle.engineer/entry/rails-sort-specifications</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
