Questions tagged [dynamodb-mapper]
42 questions
0
votes
0 answers
DynamoDBMapper batchDelete convert to pojo to be deleted
I'm using the DynamoDBMapper batchDelete method that returns a list of DynamoDBMapper.FailedBatch.
Reading the documentation, the suggestion is to retry to delete the items related to the failed requests.
How can I convert the FailedBatch to the…

Safari
- 11,437
- 24
- 91
- 191
0
votes
1 answer
DynamoDB Query expression on partitionKey
i have one AmazonDynamoDB whose hashKey is: "userId" and rangeKey is: "timestamp".
I am writing one query for fetching up all records related to particular userId.
String keyConditionExpression = "userId = :userId";
HashMap…

Shivanshu
- 784
- 1
- 5
- 20
0
votes
2 answers
Mapping List to DynamoDB
I'm trying to map to DynamoDB list of dates in Java
@DynamoDBTypeConverted(converter = LocalDateTimeConverter.class)
private List acquisitionsDates;
public class LocalDateTimeConverter implements DynamoDBTypeConverter

piechos
- 123
- 2
- 10
0
votes
1 answer
How to ensure backwards compatibility when changing data type of attribute DynamoDB
I am attempting to change the data type of an attribute in one of my DDB tables, but because this data is read from and written to, altering the data type of the attribute causes subsequent read failures when reading old records, which look like…

naesmanak
- 173
- 2
- 14
0
votes
0 answers
DynamoDB/Jackson removing 'is' prefix from property name of the entity
Not sure if this issue is related to DynamoDB, Jackson, or something else.
The prefix is is being removed from the field isPrimary while writing, saving with the name primary instead in DynamoDB.
Not able to get the record based on this field…

Prem
- 316
- 1
- 5
- 23
0
votes
2 answers
Mocking DynamoDB mapper query using Mockito
I am trying to mock a very simple line of code that is used to query the DynamoDB using Java. Here is some sample code for the query -
List result;
try {
if (filters == null) {
this.queryExpression = new…

Samarth
- 242
- 2
- 12
0
votes
0 answers
DynamoDB Mapper For Conditional Saves With More Than One Conditions
I have been trying to use DynamoDB mapper for creating save expressions. I want to save a record iff
A particular attribute value doesn't exist.
OR
That attribute value should be greater than a particular value.
So I have created an expression for…

neethu narayanan
- 1
- 1
0
votes
1 answer
DynamoDBMapper how to get all items without pagination
I have about 780K(count) items stored in DDB.
I'm calling DynamoDBMapper.query(...) method to get all of them.
The result is good, bcs I can get all of the items. But it cost me 3min to get them.
From the log, I see the DynamoDBMapper.query(...)…

renyinick
- 3
- 1
0
votes
1 answer
DynamoDB remove an existing attribute and add new attribute
We have an existing DynamoDB table having a non key attribute "latest". We wish to remove this attribute for the newer items from now with another named "latestV2". Will just replacing the attribute from Model class with the newer one work or do we…

Aditya Joshi
- 47
- 3
- 9
0
votes
1 answer
SocketTimeoutException when calling load for DynamoDBMapper
I am getting sometimes this error when calling load for DynamoDBMapper:
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
at…

Mouna
- 3,221
- 3
- 27
- 38
-1
votes
2 answers
How to give DynamoDB update expression(if_not_exists) in TransactionaWriteRequest
I am new to DynamoDB and working on a dynamo project. I am trying to update the item amount in a transaction with condition if_not_exists() with TransactionWriteRequest in DynamoDB Mapper.
As per the Doc, transactionWriteRequest.updateItem() takes…

Shailendra
- 528
- 2
- 10
- 21
-1
votes
1 answer
How to query DynamoDB with multiple Indexes?
I have a table in DynamoDB and I have a primary key and two global shared indexes. For example, the table structure is as follows.
// Primary Keys
id -> PK
name -> SK
// Global Shared Index 1
status_one -> S1PK
status_one_time -> S1SK
// Global…

Abraham Arnold
- 301
- 4
- 20