- Start with the size of the items, in kilobytes (KB):
ItemSize = Size of the items (rows) in KB
- Work out the required number of RCUs required by dividing the number by 4, and rounding up:
RCU Per Item = ItemSize / 4 (rounded up)
- Define the expected number of read operations per second. This is one of the numbers you will use to provision your table with:
Required RCU = Expected Number of Reads * RCU Per Item
- Divide the number by 3,000 to calculate the number of DDB partitions required to reach the capacity:
Read Partitions = Required RCU / 3,000
- Next, work out the write capacity required by dividing the item size by 1, and rounding up:
WCU Per Item = ItemSize / 1 (rounded up)
- Define the expected number of write operations per second. This is one of the numbers you will use to provision your table with:
Required WCU = Expected Number of Writes * WCU Per Item
- Divide the number by 1,000 to calculate the number of DDB partitions required to reach the capacity:
Write Partitions = Required WCU / 1,000
- Add these two values to get the capacity partitions required (rounding up to a whole number):
Capacity Partitions = Read Partitions + Write Partitions (rounded up)
- Work out the minimum number of partitions required by the amount of data you plan to store:
Size Partitions = Total Size in GB / 10 (rounded up)
- Once you have the partition requirements for your use case, take the maximum of your previous calculations:
Required Partitions = Maximum value between Capacity Partitions and Size Partitions
- Since your allocated capacity is spread evenly across partitions, divide the RCU and WCU values to get the per-partition performance of your table:
Partition Read Throughput = Required RCU / Required Partitions
Partition Write Throughput = Required WCU / Required Partitions