- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
You can have string values in excess of 32kb in DynamoDB. I wouldn't want to do it frequently, but it's allowed.
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ServiceQuotas.html says: "The length of a String is constrained by the maximum item size of 400 KB."
My guess is something else in your stack is truncating the string if you're seeing truncation. It's not DynamoDB itself.
Yes your assumption is likely to be correct if the item's other attributes add up to take it over 400Kb.
Note DynamoDB is intended as on OLTP DB supporting large amounts of small operations. If you have a large piece of data associated with your record it might not be best to store that directly in your database. You'll clog up the RAM and churn your disk I/O as you read and write that blob, and may get expensive. Put the blob in S3 instead. Your database record can include a pointer to the object in S3, and you can load it out when it's needed. S3 has a better pricing model for reading and writing large blobs of data, and it won't put extra strain on your database.
Contenuto pertinente
- AWS UFFICIALEAggiornata 4 mesi fa
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
Yes thanks for confirming.. This is exactly what I was also thinking as an alternative.