3

I have gone through the following doc which tells how to compress data before pushing into DynamoDB.

http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/JavaDocumentAPIBinaryTypeExample.html

Is it possible to push data (> 1KB in size) in compressed format and rest of the data in uncompressed format into DynamoDB?

My Scenario: Push JSON string into DynamoDB

  1. Check if JSON object size is more than 1KB.
  2. If yes, compress the JSON string and update into DynamoDB
  3. If no, update the JSON string as it is into DynamoDB

1 Answer 1

2

Compute the item size of your document recursively, as does the DynamoDB Storage Backend for Titan here. Then, if the item size is greater than 1kb you can choose to encode all or part of your document as a compressed binary.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.