I'm trying to update an item where I need to edit about different 150 attributes on the item and I'm getting Invalid UpdateExpression: Expression size has exceeded the maximum allowed size
. I assume it's because my UpdateExpression
string is very long. AWS docs say that the maximum length of an expression parameters is 4kb.
How would I go about reconciling this error? I guess I could break the request down into multiple but that seems dirty.
There are some other questions on here about the Item
size limit but I haven't found anything about the UpdateExpression
limit.
Solution:
I ended up limiting the request to 50 attribute updates and that along with transactWrite
and ConsistentRead
fixed my issue.