Details
Diff Detail
- Repository
- rCOMM Comm
- Branch
- add-put-messages-items-by-batch
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
services/tunnelbroker/src/Database/DatabaseManager.cpp | ||
---|---|---|
171–194 ↗ | (On Diff #13894) | Could you find a way to avoid the duplication between this and putMessageItem? |
199–201 ↗ | (On Diff #13894) | According to the documentation https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html
especially
Can we have something like that? Probably innerBatchWriteItem should be modified. |
Using a private function to populate put requests in a one place instead of duplicating it.
services/tunnelbroker/src/Database/DatabaseManager.cpp | ||
---|---|---|
171–194 ↗ | (On Diff #13894) |
I've added a private function to populate the PutRequest and PutItemRequest in one place. |
199–201 ↗ | (On Diff #13894) |
innerBatchWriteItem in D4373 was modified according to this issue. |
services/tunnelbroker/src/Database/DatabaseManager.cpp | ||
---|---|---|
138–142 ↗ | (On Diff #14030) | It's probably possible to simplify the usage a bit by:
It would only work when T have a default constructor, but it's still worth considering |
140 ↗ | (On Diff #14030) | We shouldn't start a parameter name with uppercase letter |
171–194 ↗ | (On Diff #13894) | Great! |
Rebase on the stack updates (innerBatchWriteItem function), fixed parameter name.
services/tunnelbroker/src/Database/DatabaseManager.cpp | ||
---|---|---|
138–142 ↗ | (On Diff #14030) |
Yes, I was thinking about such an approach too, but not sure it's worth it here. Thanks for the suggestion! |
140 ↗ | (On Diff #14030) |
Fixed, thanks! |
services/tunnelbroker/src/Database/DatabaseManager.cpp | ||
---|---|---|
182–184 |
Rebase on master.
The variable name was changed from curWriteRequest to writeRequest.