---
title: "Discussion on \"How to Store Large Attribute Values in DynamoDB\" | Hashnode"
description: "Discussion on \"How to Store Large Attribute Values in DynamoDB\". Learn how compressing large values can save you some $$$ on your DynamoDB bill"
url: "https://hashnode.com/posts/how-to-store-large-attribute-values-in-dynamodb/604f049c37d84907f1329ea1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Store Large Attribute Values in DynamoDB](https://benoitboure.com/how-to-store-large-attribute-values-in-dynamodb?utm_source=hashnode&utm_medium=feed)

Learn how compressing large values can save you some $$$ on your DynamoDB bill

Mar 15, 2021 · 7 min read · benoitboure.com  
Updated May 2, 2021  
Read the article

-   [#dynamodb](https://hashnode.com/tag/dynamodb)
-   [#aws](https://hashnode.com/tag/aws)
-   [#amazon-web-services](https://hashnode.com/tag/amazon-web-services)

## Written by

[Benoît Bouré](https://hashnode.com/@bboure)

@bboure · Remote

  
[View profile](https://hashnode.com/@bboure)

Software developer

👨‍💻 Sofware Engineer · 💬 Consultant · 🚀 Indie Maker · ⚡️ Serverless 🔧 serverless-appsync-plugin · serverless-appsync-simulator · middy-appsync 🐈 and 🍵

## Responses 1

Markdown supported · ⌘↵ to post

[hashnode](https://hashnode.com/@hashnodemore)

[Nov 6, 2021](https://hashnode.com/posts/how-to-store-large-attribute-values-in-dynamodb/604f049c37d84907f1329ea1/comment/618705e141f03514daf3f641)

From - [docs.aws.amazon.com/amazondynamodb/latest/develop…](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.html#GSI.Writes)

> If an update to the table changes the value of an indexed key attribute (from A to B), two writes are required, one to delete the previous item from the index and another write to put the new item into the index.
