Fjam1227
Fjam1227

Reputation: 1

Java How can i store a JSON Object or JSON Array in dynamodb without converting it into a string?

So the reason I am asking this is that there is a 400kb item size limit and if I stringify the JSON objects they become huge and I have to break them into 5-10 parts or rows for that matter.

Upvotes: 0

Views: 301

Answers (1)

Kevin.Z
Kevin.Z

Reputation: 21

A string will take up about a byte per letter, unless your JSON object has a lot of integer values (about 4 bytes per integer) you're probably not going to be saving that much room.

If your JSON object is that big, consider splitting the object into different tables in your database and have a one-to-one relationship.

Upvotes: 1

Related Questions