sodiray / dynofunc

Functional library for creating and sending dynamo requests on top of boto3
MIT License
9 stars 3 forks source link

Add an `estimate` helper that estimates RCU and WCU #9

Open sodiray opened 4 years ago

sodiray commented 4 years ago

Might look like...

operation = add('users', item={ 
    'id': 50, 
    'team_id': 288, 
    'username': 'sunshie', 
    'state': 'active' 
})

est = estimate(operation)

print(est)

{ 'rcu': 0, 'wcu': 45, 'units': 'kbs' }
sodiray commented 4 years ago

Will need...

On the topic of calculating the RCU/WCU here are some helpful resources