Skip to content

Commit 513de60

Browse files
authored
Add information on automated collection extents trigger (#259)
* Add information on automated collection extents trigger * Remove duplicate mention of unreleased section
1 parent a993d2c commit 513de60

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
6-
## Unreleased
6+
7+
### UNRELEASED
8+
9+
- Updated docs on automated updates of collection extents. (CLOSES #247)
710

811
### Fixed
912
- Fix issue when installing or migrating pgstac using a non superuser (particularly when using the default role found on RDS). (FIXES #239). Backports fix into migrations for 0.8.2, 0.8.3, and 0.8.4.

docs/src/pypgstac.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,9 @@ To upsert any records, adding anything new and replacing anything with the same
8484
```
8585
pypgstac load items --method upsert
8686
```
87+
88+
### Automated Collection Extent Updates
89+
90+
By setting `pgstac.update_collection_extent` to `true`, a trigger is enabled to automatically adjust the spatial and temporal extents in collections when new items are ingested. This feature, while helpful, may increase overhead within data load transactions. To alleviate performance impact, combining this setting with `pgstac.use_queue` is beneficial. This approach necessitates a separate process, such as a scheduled task via the `pg_cron` extension, to periodically invoke `CALL run_queued_queries();`. Such asynchronous processing ensures efficient transactional performance and updated collection extents.
91+
92+
*Note: The `pg_cron` extension must be properly installed and configured to manage the scheduling of the `run_queued_queries()` function.*

0 commit comments

Comments
 (0)