<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takahashikzn</author_name>
  <author_url>https://blog.hatena.ne.jp/takahashikzn/</author_url>
  <blog_title>R42日記</blog_title>
  <blog_url>https://takahashikzn.root42.jp/</blog_url>
  <categories>
    <anon>SQL</anon>
  </categories>
  <description>ちょっと小ネタ気味で恐縮ですが。 バッチ処理などで大量データ処理を行っているとき、 「いま、全体の何パーセントが終わったんだろう？」 と思うときがあります。 例えば、バッチ処理で100万件のINSERTが実行されることが予想されるとき、 それが1トランザクションで実行されるならば、コミットされるまで select count(*) from XXX; の結果はゼロのままです。リアルタイムで「50万件、60万件、…」とレコード件数が増加していくのが見たいのに…!! そんなときはこれを使えばOK。 set session transaction isolation level read uncom…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakahashikzn.root42.jp%2Fentry%2F20091209%2F1260290985&quot; title=&quot; バッチ処理の進捗度をリアルタイムで測定する - R42日記&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>2009-12-09 01:49:45</published>
  <title> バッチ処理の進捗度をリアルタイムで測定する</title>
  <type>rich</type>
  <url>https://takahashikzn.root42.jp/entry/20091209/1260290985</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
