Skip to content

Commit b05138a

Browse files
jensensclaude
andcommitted
Update default blob-threshold from 1MB to 100KB in docs
Matches zodb-pgjsonb 1.3.2 which lowered the default to reduce WAL pollution. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 628f84e commit b05138a

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## 2.4.1 (unreleased)
44

5+
- Docs: Update PGJsonb default `blob-threshold` from 1MB to 100KB in docs
6+
(matching zodb-pgjsonb 1.4.0).
7+
[@jensens]
8+
59
- Feature: Generate generic `convert-import.conf` and `convert-export.conf`
610
for all non-filestorage backends (RelStorage, PGJsonb, ZEO) using the
711
storage-agnostic [zodb-convert](https://pypi.org/project/zodb-convert/)

docs/sources/explanation/blob-handling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ with no filesystem dependencies.
8686
For deployments with large or numerous blobs, PGJsonb supports tiering
8787
blobs to S3-compatible object storage:
8888

89-
- Blobs smaller than `db_pgjsonb_blob_threshold` (default: 1 MB) stay in
89+
- Blobs smaller than `db_pgjsonb_blob_threshold` (default: 100 KB) stay in
9090
PostgreSQL `bytea`
9191
- Blobs exceeding the threshold are uploaded to S3
9292
- A local cache directory avoids repeated S3 downloads

docs/sources/how-to/configure-pgjsonb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ default_context:
8282
db_pgjsonb_s3_region: us-east-1
8383
db_pgjsonb_s3_access_key: minio-access-key
8484
db_pgjsonb_s3_secret_key: minio-secret-key
85-
db_pgjsonb_blob_threshold: 1MB
85+
db_pgjsonb_blob_threshold: 100KB
8686
db_pgjsonb_blob_cache_dir: /var/cache/zodb-blobs
8787
db_pgjsonb_blob_cache_size: 2GB
8888
```

docs/sources/reference/database-pgjsonb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ the `zodb-pgjsonb[s3]` extra to be installed.
7272
| `db_pgjsonb_s3_access_key` | *(unset)* | string |
7373
| `db_pgjsonb_s3_secret_key` | *(unset)* | string |
7474
| `db_pgjsonb_s3_use_ssl` | `true` | `true`, `false` |
75-
| `db_pgjsonb_blob_threshold` | *(unset, default `1MB`)* | byte-size (KB, MB, GB) |
75+
| `db_pgjsonb_blob_threshold` | *(unset, default `100KB`)* | byte-size (KB, MB, GB) |
7676
| `db_pgjsonb_blob_cache_dir` | *(unset)* | path |
7777
| `db_pgjsonb_blob_cache_size` | *(unset, default `1GB`)* | byte-size (KB, MB, GB) |
7878

0 commit comments

Comments
 (0)