From ba3be9955477ee1e60c0ff0cdd6ec19fb93b8bf3 Mon Sep 17 00:00:00 2001 From: Chris Lennon Date: Thu, 13 Oct 2016 17:11:53 +0200 Subject: [PATCH] Adds gotcha for DynamoDB relating to empty strings (#145) * Adds gotcha for DynamoDB relating to empty strings * Changes phrasing of gotcha --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ca35d2d..df45a13 100644 --- a/README.md +++ b/README.md @@ -998,6 +998,7 @@ DynamoDB - 🔸 DynamoDB doesn’t provide an easy way to bulk-load data (it is possible through [Data Pipeline](http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-importexport-ddb-part1.html), and this has some [unfortunate consequences](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GuidelinesForTables.html#GuidelinesForTables.AvoidExcessivePTIncreases). Since you need to use the regular service APIs to update existing or create new rows, it is common to temporarily turn up a destination table’s write throughput to speed import. But when the table’s write capacity is increased, DynamoDB may do an irreversible split of the partitions underlying the table, spreading the total table capacity evenly across the new generation of tables. Later, if the capacity is reduced, the capacity for each partition is also reduced but the total number of partitions is not, leaving less capacity for each partition. This leaves the table in a state where it much easier for hotspots to overwhelm individual partitions. - It is important to make sure that DynamoDB [resource limits](http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html#limits-data-types) are compatible with your dataset and workload. For example, the maximum size value that can be added to a DynamoDB table is 400 KB (larger items can be stored in S3 and a URL stored in DynamoDB). +- DynamoDB does [not allow](https://forums.aws.amazon.com/thread.jspa?threadID=90137) an empty string as a valid attribute value. The most common work-around is to use a substitute value instead of leaving the field empty. ECS ---