← Back to context

Comment by rjdavis3

9 years ago

What is the point of this trending? To try and get AWS to fix it? I must admit this was a gotcha for me at first but it is documented right on their standard Limits page. I'm guessing the fix is non-trivial or they probably would have just done it.

http://docs.aws.amazon.com/amazondynamodb/latest/developergu...

This limitation should be in a giant alert at the top of all DynamoDB documentation. They are being misleading in their documentation:

> A map is similar to a JSON object. There are no restrictions on the data types that can be stored in a map element, and the elements in a map do not have to be of the same type.

> Maps are ideal for storing JSON documents in DynamoDB. The following example shows a map that contains a string, a number, and a nested list that contains another map.

Not being able to serialize an empty string is abysmally poor design.

  • There's a difference between poor design and performance optimizations. Lacking any information, I'm inclined to commit an appeal to authority and guess that it's probably a performance optimization.