---
title: Configure DataAccess and DynamicDataStore
slug: cms-11/dev-docs/configuring-dataaccess-and-dynamicdatastore
docTags: 
createdAt: 2026-07-22T19:45:19.953Z
---

The [Configure CMS](docId\:Ki3aZjVaUcNEu4ABnx3dY) topic describes the syntax used to describe the configuration elements.

```json
{
  "EPiServer": {
    "Cms": {
      "DataAccess": {
        "Retries": "5",
        "RetryDelay": "0:0:0.1",
        "DatabaseQueryTimeout": "0:0:30",
        "DatabaseMode": "ReadWrite/ReadOnly"
      },
      "DynamicDataStore": {
        "AutoResolveTypes": "true/false",
        "AutoRemapStores": "true/false",
        "DeleteAllOperationTimeout": "time span"
      }
    }
  }
}
```

### DataAccessOptions

| Name                   | Default value | Description                                                                                                                                                                                                                                            |
| ---------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `RetryDelay`           | 0:0:0.1       | The time to wait before retrying in case of a transient error (only relevant if retries are greater than 0). Retry delays are                                                                                                                          |
| `Retries`              | 5             | The number of retry attempts in case a transient error such as a deadlock occurs or a timeout when opening the connection.                                                                                                                             |
| `DatabaseQueryTimeout` | 0:0:30        | The timeout value to use for database queries (in other words `DbCommand.CommandTimeOut)`.                                                                                                                                                             |
| `DatabaseMode`         | ReadWrite     | The database mode can be configured by the `databaseMode` attribute on the `episerver.dataStore` section or by the `episerver:DatabaseMode` setting under the `appSettings` section. See [Database mode](docId:6qNkTsjUdqh3-3g7Nrcxa) for information. |

### DynamicDataAccesOptions

The `dataStore` element is **optional**. Configuration values in `web.config` override default values in code.

| Name                        | Default value | Description                                                                     |
| --------------------------- | ------------- | ------------------------------------------------------------------------------- |
| `AutoRemapStores`           | true          | Defines whether CMS remaps stores automatically when a type definition changes. |
| `AutoResolveTypes`          | true          | Defines whether type resolution by the Dynamic Data Store is automatic.         |
| `DeleteAllOperationTimeout` | 600           | Command timeout for the **delete all** functionality.                           |
