1 Answer
- Newest
- Most votes
- Most comments
2
You can't get item size statistics directly from the table, but you can of course calculate item sizes while reading or writing using this package: https://www.npmjs.com/package/ddb-calc
const CALC = require('ddb-calc') const item = { "Id": { "N": "101" }, "Title": { "S": "Book 101 Title" }, "ISBN": { "S": "111-1111111111" }, "Authors": { "L": [ { "S": "Author1" } ] }, "Price": { "N": "2" }, "Dimensions": { "S": "8.5 x 11.0 x 0.5" }, "PageCount": { "N": "500" }, "InPublication": { "BOOL": true }, "ProductCategory": { "S": "Book" } } const size = CALC.CalculateSize(item);
{ rcu: 1, wcu: 1, size: 137 }
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago