<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iad_otomamay</author_name>
  <author_url>https://blog.hatena.ne.jp/iad_otomamay/</author_url>
  <blog_title>レベルエンター山本大のブログ</blog_title>
  <blog_url>https://daiyamamoto.hatenablog.com/</blog_url>
  <categories>
    <anon>SQLServer2005</anon>
  </categories>
  <description>いま、クエリのパフォチュをしている。その中でちょっとした問題にぶつかった。本番サーバー（高スペック）で実行すると劇的に遅く（5分）、 ハードウェアスペックのみが異なる開発環境では、予期している速度（5秒）という現象だ。 詳しく調べていると、本番サーバーでのクエリ実行プランが開発環境とは、まったく異なることに気づく。 実行プランは、SQLServerのオプティマイザ機能が、インデックスや統計情報、CPUやメモリ状態などあらゆる点を考慮して自動的に作成するが、今回はオプティマイザがちょっとおばかだったらしい。 この対応としては、「Option(HASH JOIN)」というクエリヒントをつけることで…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdaiyamamoto.hatenablog.com%2Fentry%2F20080626%2Fp1&quot; title=&quot;クエリの実行プランを強制する。 - レベルエンター山本大のブログ&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>2008-06-26 00:00:01</published>
  <title>クエリの実行プランを強制する。</title>
  <type>rich</type>
  <url>https://daiyamamoto.hatenablog.com/entry/20080626/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
