How do you calculate the storage size of a SimpleDB domain?

Posted by C. Dragon 76 on Stack Overflow See other posts from Stack Overflow or by C. Dragon 76
Published on 2010-06-10T15:06:51Z Indexed on 2010/06/10 22:42 UTC
Read the original article Hit count: 201

Filed under:

The official documentation states:

Raw byte size (GB) of all item IDs + 45 bytes per item + Raw byte size (GB) of all attribute names + 45 bytes per attribute name + Raw byte size (GB) of all attribute-value pairs + 45 bytes per attribute-value pair

What is the raw size of an attribute-value pair? Is it precisely the size of the value? (I would expect so, but then why is it worded "attribute-value pair"?) Or is it the size of the attribute name plus the size of the attribute value? (In that case, there would be motivation to give your attributes really short names.)

For example, what is the size of the tiny domain below?

+---------------------------------------------------------+
| Item Name/ID | "Price" attribute | "Calories" attribute |
|--------------+-------------------+----------------------|
| "apple"      | "0000.43"         | "0046"               |
| "orange"     | "0000.70"         | "0053"               |
+---------------------------------------------------------+

© Stack Overflow or respective owner

Related posts about simpledb