Skip to content

Commit ffab3e6

Browse files
committed
fix: add bigquery cache doc
1 parent e2790a2 commit ffab3e6

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

packages/doc/docs/develop/cache.mdx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,18 @@ extensions:
2525
duckdb: @vulcan-sql/extension-driver-duckdb
2626
```
2727
28-
In the configuration, `tmp` means there will be a new folder called `tmp` in the root directory of the project you created.
28+
In the configuration, `tmp` means there will be a new folder called `tmp` in the root directory of the project you created.
29+
30+
If your data source is BigQuery, you need to update your `profiles.yaml` as following:
31+
32+
```yaml
33+
- name: bq # profile name
34+
type: bq
35+
...
36+
cache:
37+
# You should make sure there is a storage object administrator role in your service account
38+
bucketName: 'your-bucket-name'
39+
```
2940

3041
## Caching Query Results
3142
To utilize the caching layer, you can enclose your SQL query inside the `{% cache %}` and `{% endcache %}` tags. For example:

0 commit comments

Comments
 (0)