You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/configuration.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -288,6 +288,34 @@ Conceptually, we can group the root level parameters into the following types. E
288
288
289
289
The rest of this page provides additional detail for some of the configuration options and provides brief examples. Comprehensive lists of configuration options are at the [configuration reference page](../reference/configuration.md).
290
290
291
+
### Cache directory
292
+
293
+
By default, the SQLMesh cache is stored in a `.cache` directory within your project folder. You can customize the cache location using the `cache_dir` configuration option:
294
+
295
+
=== "YAML"
296
+
297
+
```yaml linenums="1"
298
+
# Relative path to project directory
299
+
cache_dir: my_custom_cache
300
+
301
+
# Absolute path
302
+
cache_dir: /tmp/sqlmesh_cache
303
+
304
+
```
305
+
306
+
=== "Python"
307
+
308
+
```python linenums="1"
309
+
from sqlmesh.core.config import Config, ModelDefaultsConfig
The cache directory is automatically created if it doesn't exist. You can clear the cache using the `sqlmesh clean` command.
318
+
291
319
### Table/view storage locations
292
320
293
321
SQLMesh creates schemas, physical tables, and views in the data warehouse/engine. Learn more about why and how SQLMesh creates schema in the ["Why does SQLMesh create schemas?" FAQ](../faq/faq.md#schema-question).
|`ignore_patterns`| Files that match glob patterns specified in this list are ignored when scanning the project folder (Default: `[]`) | list[string]| N |
22
22
|`project`| The project name of this config. Used for [multi-repo setups](../guides/multi_repo.md). | string | N |
23
+
|`cache_dir`| The directory to store the SQLMesh cache. Can be an absolute path or relative to the project directory. (Default: `.cache`) | string | N |
0 commit comments