<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lirlia</author_name>
  <author_url>https://blog.hatena.ne.jp/lirlia/</author_url>
  <blog_title>フラミナル</blog_title>
  <blog_url>https://blog.framinal.life/</blog_url>
  <categories>
    <anon>備忘</anon>
  </categories>
  <description>完全にメモ とあるソシャゲのAPIサーバで Spanner を使った。 このとき元々は Mutation を利用していたのだが、以下の理由で Statement DML に変えた。 もともと API サーバではクライアントからのリクエストを処理し、その結果に応じてミッションやアチーブメントの達成などさまざまなイベントを処理している。このときリクエストによって促された変更を１トランザクションの中で扱い、ロールバック時はイベントも破棄という仕様を考えていた。 そのためトランザクション内の先に実行された INSERT や UPDATE などのクエリ結果がコミットまで参照できない Mutation と…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.framinal.life%2Fentry%2F2022%2F09%2F29%2F000101&quot; title=&quot;【備忘】spanner の mutation と Statement DML のどちらを使うか - フラミナル&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-09-29 00:01:01</published>
  <title>【備忘】spanner の mutation と Statement DML のどちらを使うか</title>
  <type>rich</type>
  <url>https://blog.framinal.life/entry/2022/09/29/000101</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
