I want to be able to see how much write capacity individual saves are consuming. At the moment I think it's not possible. This PR fixes that by passing any options supplied to a save call through to the eventual Dynamo call. Supplying return_consumed_capacity: "TOTAL" means the result returned by the save call will show the consumed write capacity.
Coverage increased (+0.1%) to 97.768% when pulling a037fca9f3aa5b27c6dbc56263546a8df8c87a74 on ciaranlee:cl/another-approach-to-return_consumed_capacity into cb5f10ff23aaed7d3b47706070f1bb7aa37fb0d8 on aws:master.
I want to be able to see how much write capacity individual saves are consuming. At the moment I think it's not possible. This PR fixes that by passing any options supplied to a
save
call through to the eventual Dynamo call. Supplyingreturn_consumed_capacity: "TOTAL"
means the result returned by the save call will show the consumed write capacity.Here's what it looks like:
I tries another approach in #60 but I prefer this approach because:
request_opts
- ensuring that all dynamo operations use the same base options hash_perform_save
method