title: Scanning a large DynamoDB Table - 1.5TB in size with 10 Billion records
body: <h2>Background</h2>
  <p>I am in need to scan a quite large DynamoDB table and am looking for ways to optimize scan speed. I have tried running a simple scan query and the scan wasn't complete even after a day of running. The table is <code>1.5TB</code> in size with <code>10 Billion</code> records, with an avg record size of <code>0.15KB</code></p>
  <h2>Details</h2>
  <pre><code>PrimaryKey: &quot;{userId}:{barcode}&quot;
  SortKey: &quot;{epochTimeInMillis}&quot;
  </code></pre>
  <p>In our usecase, we have access to just the <code>userId</code> and we have to scan the table to find rows where the userId is in the <code>PrimaryKey</code>.</p>
  <h2>Question</h2>
  <p>Any ideas on what I can try with the request to expedite the ScanTime? Right now, I've set 30K Read Capacity Units but while the Scan is running I only seeing around 1500 RCUs being utilized, so I don't think that's a problem.</p>
  <p>Best,</p>