Skip to content

Commit

Permalink
Add information on automated collection extents trigger (#259)
Browse files Browse the repository at this point in the history
* Add information on automated collection extents trigger

* Remove duplicate mention of unreleased section
  • Loading branch information
zacdezgeo authored Apr 22, 2024
1 parent a993d2c commit 513de60
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## Unreleased

### UNRELEASED

- Updated docs on automated updates of collection extents. (CLOSES #247)

### Fixed
- 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.
Expand Down
6 changes: 6 additions & 0 deletions docs/src/pypgstac.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,9 @@ To upsert any records, adding anything new and replacing anything with the same
```
pypgstac load items --method upsert
```

### Automated Collection Extent Updates

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.

*Note: The `pg_cron` extension must be properly installed and configured to manage the scheduling of the `run_queued_queries()` function.*

0 comments on commit 513de60

Please sign in to comment.