<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cero-t</author_name>
  <author_url>https://blog.hatena.ne.jp/cero-t/</author_url>
  <blog_title>谷本 心 in せろ部屋</blog_title>
  <blog_url>https://cero-t.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Java</anon>
    <anon>Spring</anon>
  </categories>
  <description>要約 技術的な話だけ教えて、という方のために先に結論だけ書いておきますと、PostgreSQLはクエリを実行した時点で全レコードの情報を一気に読んできてヒープを埋めてしまう場合がある、ということ話です。 たとえば、ResultSet#nextメソッドを使いながら処理を回すようなコードを書いて、少ないヒープでも処理できるようにするのは常套手段だと思いますが、そういうコードを書いていても一気にヒープを消費してしまうことがあるのです。詳しくはこのドキュメントを見てください。 https://jdbc.postgresql.org/documentation/head/query.html#query…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcero-t.hatenadiary.jp%2Fentry%2F2020%2F08%2F12%2F220853&quot; title=&quot;100万件ぐらいのレコードを扱ったらOOMEが出た話。 - 谷本 心 in せろ部屋&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/c/cero-t/20200812/20200812214730.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-08-12 22:08:53</published>
  <title>100万件ぐらいのレコードを扱ったらOOMEが出た話。</title>
  <type>rich</type>
  <url>https://cero-t.hatenadiary.jp/entry/2020/08/12/220853</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
