<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>higayasuo</author_name>
  <author_url>https://blog.hatena.ne.jp/higayasuo/</author_url>
  <blog_title>ひがやすを技術ブログ</blog_title>
  <blog_url>https://higayasuo.hatenablog.com/</blog_url>
  <categories>
    <anon>くーす</anon>
  </categories>
  <description>TransactionScriptが、扱うデータを一度に読み込み、ループでまわして、必要なものをセレクト、ということなら、くーすは違います。 最初から、SQLで必要なデータの必要な項目に絞って取得するからです。 Fowlerの言っているリッチなSQLですね。 SQLにロジックを埋め込むのと引き換えに、パフォーマンスを得ているわけです。 ドメインモデルを使うと、バウンダリ(画面)とデータをやり取りする場合に、DTOとドメインオブジェクトの相互変換を行わなければいけないため、コストがかかりすぎると思っています。 バウンダリで、直接ドメインオブジェクトを使うのも、かなり困難だと思います。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhigayasuo.hatenablog.com%2Fentry%2F20041021%2F1098336935&quot; title=&quot;TransactionScriptとくーすの違い - ひがやすを技術ブログ&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>2004-10-21 14:35:35</published>
  <title>TransactionScriptとくーすの違い</title>
  <type>rich</type>
  <url>https://higayasuo.hatenablog.com/entry/20041021/1098336935</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
