<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mk3008net</author_name>
  <author_url>https://blog.hatena.ne.jp/mk3008net/</author_url>
  <blog_title>.NETで作る！</blog_title>
  <blog_url>https://mk3008net.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>CTEとは「Common Table Expressions」のこと。ざっくり言えば「With句」のこと。 PostgresでWith句を使用していると遅いケースがあったので、Temporary view 作って対応したほうがいいのだろうかと思い「CTE vs View」で情報収集。 そしたら、こちらのサイトにとても有益な情報が！すばらしい！ www.sraoss.co.jp 結論 Postgres12以降なら「パフォーマンスはCTE≒View」なので、再利用性が高いならView、それ以外ならCTEでいいと思います。 注意点もあるのでそこは詳細を見て判断ください。 なお、Postgres12は…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmk3008net.hatenablog.com%2Fentry%2F2022%2F01%2F03%2F153631&quot; title=&quot;CTE(With句) vs View in Postgres - .NETで作る！&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>2022-01-03 15:36:31</published>
  <title>CTE(With句) vs View in Postgres</title>
  <type>rich</type>
  <url>https://mk3008net.hatenablog.com/entry/2022/01/03/153631</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
