---
title: "Can Site studio templates be saved into the database?"
date: "2020-11-19T16:28:24+00:00"
summary: "Discover how to save Site Studio templates to your database, enhancing storage flexibility and performance. Learn about key value storage, database implications, and implementation steps for Drupal 6.3.5 and above."
image:
type: "article"
url: "/drupal-starter-kits/add-ons/site-studio/help/65546-can-site-studio-templates-be-saved-database"
id: "e71a6cd7-9aca-42fa-8fed-43d7ee1ec842"
---

Yes, the generated templates can be saved to the database.

As of version 6.3.5 the template storage can be switched from the file system to the key value storage. If enabled Site Studio will be using the database more often as it will save all config templates in the database. 

Important

Database utilisation will increase especially during rebuild and sync operations, be aware that this will also increase the size of your database.

To enable this feature you need to change the alias of the `cohesion.template_storage` services to point to `cohesion.template_storage.key_value`.

You can do so by providing a site specific services.yml and provide the path to it in your settings.php

for example in your `env.services.yml`:

services:  
      cohesion.template\_storage:  
             alias: cohesion.template\_storage.key\_value

Then in your `settings.php`:

`$settings['container_yamls'][] = '/path/to/env.services.yml'`

Acquia Site Factory
-------------------

This feature is especially useful when utilising a distributed filesystem as found on Acquia Site Factory, however, the above approach applies this change throughout your platform. 

For a more flexible per-site approach you should consider installing the [Site Studio ACSF module](/drupal-starter-kits/add-ons/site-studio/using-site-studio-site-factory "Using Site Studio with Site Factory")