<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takemaru123</author_name>
  <author_url>https://blog.hatena.ne.jp/takemaru123/</author_url>
  <blog_title>たけまるの日記</blog_title>
  <blog_url>https://takemaru123.hatenablog.jp/</blog_url>
  <categories>
    <anon>MySQL/InnoDB</anon>
  </categories>
  <description>2億レコードくらい入ってるテーブルにこれ流したらディスク逼迫して死んだ。 mysql&gt; UPDATE table SET col = NULL; 数時間後、繋がってるサービスの画面が「500 Internal Server Error」。 みたらディスク空きが0になってた。 なにがでかくなってたかというと # ls -alh /var/lib/mysql (抜粋) -rw-rw---- 1 mysql mysql 18G Jan 8 16:58 ibdata1 ちなみにinnodb_file_per_tableは有効(デフォルト)である。 要はテーブルの実データはibdata1には入ってない。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakemaru123.hatenablog.jp%2Fentry%2F2015%2F01%2F08%2F235227&quot; title=&quot; 1クエリで一度に大量のレコードをupdateしてはいけない - たけまるの日記&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>2015-01-08 23:52:27</published>
  <title> 1クエリで一度に大量のレコードをupdateしてはいけない</title>
  <type>rich</type>
  <url>https://takemaru123.hatenablog.jp/entry/2015/01/08/235227</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
