Skip to content

Commit 4dcb1a6

Browse files
committed
Mention .yaml tuning
1 parent 4d4b173 commit 4dcb1a6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

mkdocs/docs/configuration.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,21 @@ For example, `PYICEBERG_CATALOG__DEFAULT__S3__ACCESS_KEY_ID`, sets `s3.access-ke
5353
PyIceberg caches `ManifestFile` objects locally and uses an LRU policy to bound the cache size. By default, up to `128`
5454
manifest entries are retained.
5555

56-
You can change the cache size with the `PYICEBERG_MANIFEST_CACHE_SIZE` environment variable:
56+
You can tune the `manifest-cache-size` configuration in `.pyiceberg.yaml`:
57+
58+
```yaml
59+
manifest-cache-size: 256
60+
```
61+
62+
You can also set it with the `PYICEBERG_MANIFEST_CACHE_SIZE` environment variable:
5763

5864
```sh
5965
export PYICEBERG_MANIFEST_CACHE_SIZE=256
6066
```
6167

6268
The memory used by this cache depends on the size and number of distinct manifests your workload touches. Lower the value
6369
if you want a tighter memory bound, or call `clear_manifest_cache()` to proactively release cached manifest metadata in
64-
long-lived processes. Setting `PYICEBERG_MANIFEST_CACHE_SIZE` to `0` disables manifest caching entirely.
70+
long-lived processes. Setting `manifest-cache-size` or `PYICEBERG_MANIFEST_CACHE_SIZE` to `0` disables manifest caching entirely.
6571

6672
## Tables
6773

0 commit comments

Comments
 (0)