<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tokizuoh</author_name>
  <author_url>https://blog.hatena.ne.jp/tokizuoh/</author_url>
  <blog_title>カルボナーラ街道</blog_title>
  <blog_url>https://tokizuoh.hatenablog.com/</blog_url>
  <categories>
    <anon>AWS</anon>
    <anon>Amazon DynamoDB</anon>
    <anon>AWS Lambda</anon>
    <anon>Python</anon>
  </categories>
  <description>この記事はシリーズものです。 AWSを使って何か作る: API Gateway を使ってAPIを公開する 本記事 まとめ DynamoDB の Item 取得処理を scan() から query() に変更 検索結果を絞り込むために必要な Attribute をテーブルの Partition Key に設定 以上を行うことで、処理時間が5秒から0.5秒に下がり、レスポンス速度を向上することができた。 # 修正前 &gt; curl -w &quot;speed: %{time_total}\n&quot; -o /dev/null -s https://{END_POINT}?input_text=iaa speed…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftokizuoh.hatenablog.com%2Fentry%2F2022%2F04%2F24%2F151821&quot; title=&quot;自作 API 改修: DynamoDB の Item 取得処理とテーブル設計を見直してレスポンス速度向上 - カルボナーラ街道&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/t/tokizuoh/20220424/20220424144703.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-04-24 15:18:21</published>
  <title>自作 API 改修: DynamoDB の Item 取得処理とテーブル設計を見直してレスポンス速度向上</title>
  <type>rich</type>
  <url>https://tokizuoh.hatenablog.com/entry/2022/04/24/151821</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
