<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>namaza</author_name>
  <author_url>https://blog.hatena.ne.jp/namaza/</author_url>
  <blog_title>雑記</blog_title>
  <blog_url>https://ytrewq.hatenablog.com/</blog_url>
  <categories>
    <anon>CakePHP</anon>
  </categories>
  <description>contain 関連をイーガーロード (eager load) するように定義します。 データの取り出しと結果セット イーガーロードとは、N+1問題を回避する手段らしい。 まず、N+1問題とは？ ユーザーマスタと、著者のユーザIDを属性としてもつ記事テーブルがあるとします。 ブログのトップページに記事タイトルとユーザー名を並べて表示したいとき SELECT 記事.タイトル, ユーザー.名前 FROM 記事, ユーザー WHERE 記事.ユーザID = ユーザー.ユーザーID というSQL文が実行されそうですが、 実際は SELECT * FROM 記事 が最初に実行されます。 その後、その結果…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fytrewq.hatenablog.com%2Fentry%2F2017%2F05%2F21%2F213113&quot; title=&quot;CakePHP3のORM\table::find()のイーガーロードとは - 雑記&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>2017-05-21 21:31:13</published>
  <title>CakePHP3のORM\table::find()のイーガーロードとは</title>
  <type>rich</type>
  <url>https://ytrewq.hatenablog.com/entry/2017/05/21/213113</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
