# Data retention in Cassandra

**URL:** https://community.temporal.io/t/data-retention-in-cassandra/1175
**Category:** Community Support
**Created:** [December 13, 2020, 8:44pm UTC](https://community.temporal.io/t/data-retention-in-cassandra/1175 "2020-12-13T20:44:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![amlanroy1980](https://avatars.discourse-cdn.com/v4/letter/a/6f9a4e/32.png) [@amlanroy1980](https://community.temporal.io/u/amlanroy1980)
#### Post date: [December 13, 2020, 8:44pm UTC](https://community.temporal.io/t/data-retention-in-cassandra/1175/1 "2020-12-13T20:44:18Z")

</div>

We are trying to estimate the Cassandra capacity required to run Temporal. What is the data retention policy for the tables in temporal or temporal\_visibility keyspaces? Is there any TTL set while writing the data? I did not find any TTL in the table definitions. If yes, what is the value of TTL and is it configurable?

---

<div class="post-metadata">

### Author: ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)
#### Post date: [December 15, 2020, 5:37pm UTC](https://community.temporal.io/t/data-retention-in-cassandra/1175/2 "2020-12-15T17:37:37Z")

</div>

Each namespace has [workflow\_execution\_retention\_period](https://github.com/temporalio/api/blob/916abc2834440e204b85d04f61b88f3cad7402e1/temporal/api/workflowservice/v1/request_response.proto#L60) setting. A closed workflow after this period is removed from DB. It includes visibility records as well.
