---
title: "Data Storage"
description: "These patterns keep business data in Flows. Choose by how the data is read and how it grows."
canonical_url: "https://docs.superdurable.io/design-patterns/data-storage/"
source: "docs/content/design-patterns/data-storage.mdx"
locale: "en"
---

> Index of every page for AI agents: https://docs.superdurable.io/llms.txt

# Data Storage

These patterns keep business data in Flows. Choose by how the data is read and how it grows.

<a id="comparison"></a>

## Choose a pattern

| When you need to                                                                                          | Use                                                                                                                                  |
| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| Keep one business entity, such as a customer account, with durable state that callers change through RPCs | [Entity Flow](https://docs.superdurable.io/design-patterns/data-storage/entity-flow.md)                                              |
| Query the latest state of many entities, such as users or orders, with SQL                                | [Entity Flow with Attribute Sync](https://docs.superdurable.io/design-patterns/data-storage/entity-flow-attribute-sync.md)           |
| Append ordered history and read it page by page                                                           | [Sequentially Chunked AttributeMap](https://docs.superdurable.io/design-patterns/data-storage/sequentially-chunked-attribute-map.md) |
| Look up or update a record by a stable key                                                                | [Hash-Partitioned AttributeMap](https://docs.superdurable.io/design-patterns/data-storage/hash-partitioned-attribute-map.md)         |
