Releases: AmbitionEng/django-pghistory
Releases · AmbitionEng/django-pghistory
3.7.0
Changes
- Ignore appending tracking configuration to
SELECT
statements when tracking context by @stephan0h in #207. - Fix typo in docs by @BStephenBB in #198.
3.6.0
Improvements
-
Add support for statement-level history tracking triggers, offering substantial performance improvements for tracking history over bulk operations by @wesleykendall in #197.
Use
@pghistory.track(level=pghistory.Statement)
to leverage statement-level triggers in history tracking. Set is as the default withPGHISTORY_LEVEL = pghistory.Statement
.A usage guide was added to the "Performance and Scaling" section of the docs. It notes how it works with conditional history tracking and caveats to be aware of.
-
Optimize context tracking by @wesleykendall in #197.
Context tracking in history triggers is significantly faster when there are many historical events in a span.
Changes
- Add support for Django 5.2, drop support for Postgres 13 by @wesleykendall in #196.
3.5.5
3.5.4
3.5.3
Fixes
- Fix custom field support by deconstructing field classes correctly in history model by @iamsauravsharma in #184.
3.5.2
Changes
- Ignore
test
command when tracking context @iamsauravsharma in #182.
3.5.1
Changes
- Changed project ownership to
AmbitionEng
by @wesleykendall in #180.
3.5.0
Features
- Optimized
Events
diff queries by ~100x via a subquery instead ofLAG
windows by @lokhman in #173. - Optimized object-level
Events
queries in the django admin by avoidingUNION
queries by @lokhman in #174.
Changes
- Added Python 3.13 support, dropped Python 3.8. Added Postgres17 support by @wesleykendall in #175.
- Make
EventQuerySet
Generic for better typing by @max-muoto in #170