How do I determine if a write succeeded with amazon DynamoDB?

How do I determine if a write succeeded with amazon DynamoDB?

If I do a putItem() which returns a result structure, how do I determine if the write succeeded or failed?

Solutions/Answers:

Solution 1:

AWS RESTful API is using HTTP status codes for identification of problems. PutItem returns HTTP code

Read the rest “How do I determine if a write succeeded with amazon DynamoDB?”

Incorrect value from dynamodb table description and scan count

Incorrect value from dynamodb table description and scan count

I’m having a problem with dynamodb. I’m attempting to verify the data contained within,
but scan seems to be only returning a subset of the data, here is the code I’m using with the python boto bindings
#!/usr/bin/python
#Check the scanned … Read the rest “Incorrect value from dynamodb table description and scan count”

Get the Max Date / Get the last added item in DynamoDB

Get the Max Date / Get the last added item in DynamoDB

Hi This is my table schema
Contacts table:
“KeySchema”: [{
“AttributeName”: “DateTimeRetrieved”,
“KeyType”: “HASH”
},{
“AttributeName”: “Id”,
“KeyType”: “RANGE”
}]

My primary key has DateTimeRetrieved as the primary key. I would like to retrieve the latest datetime that … Read the rest “Get the Max Date / Get the last added item in DynamoDB”

Are single-client writes strongly ordered in DynamoDB or Riak?

Are single-client writes strongly ordered in DynamoDB or Riak?

I have a client which performs the following two operations in order:

Creates a new item with key “ABC123”.
Updates item “newestKey” to contain the value “ABC123”.

Meanwhile a second client is running the following program:

Read the item “newestKey” to … Read the rest “Are single-client writes strongly ordered in DynamoDB or Riak?”

Query dynamoDB with key condition ‘GE’ on a hash key

Query dynamoDB with key condition ‘GE’ on a hash key

I’m trying to run a query on a dynamoDB table with the key condition as such
KeyConditions: {
userID: {
ComparisonOperator: ‘GE’,
AttributeValueList: [{N: ‘0’}]
}
}

When I run this query with the ComparisonOperator as ‘EQ’ no problems occur. … Read the rest “Query dynamoDB with key condition ‘GE’ on a hash key”