Page MenuHomePhabricator

[services-lib] Add function to batch get items
ClosedPublic

Authored by bartek on Oct 4 2023, 2:54 AM.
Tags
None
Referenced Files
F5931783: D9348.id31620.diff
Fri, Apr 18, 4:49 AM
F5929700: D9348.id32015.diff
Fri, Apr 18, 2:58 AM
F5914569: D9348.id.diff
Thu, Apr 17, 8:30 PM
F5912192: D9348.id31784.diff
Thu, Apr 17, 6:51 PM
Unknown Object (File)
Thu, Apr 17, 4:18 AM
Unknown Object (File)
Wed, Apr 2, 7:59 PM
Unknown Object (File)
Mar 17 2025, 12:18 AM
Unknown Object (File)
Mar 12 2025, 7:37 AM
Subscribers

Details

Summary

This is very similiar to D8895 but for getting items. It performs the BatchGetItem operation.

Test Plan
  • Locally, created a single-column table and filled it with values from 1 to 1000. Then ran the function to get them all. Confirmed that all 1000 items were returned. Logs confirmed that it was divided in batch of 100 items.
  • On staging, repeated the steps for a table with read capacity of 1. Confirmed that exponential backoff did the job and items were retrieved after a few retries. However, I needed to increase number of items to about 3k

In general, conclusions are similiar to D8895 test plan (this is expected, the code and working principle is analogous).

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable