Тёмный

Using database triggers to reliably track model history with Wes Kendall 

DjangoCon US
Подписаться 11 тыс.
Просмотров 735
50% 1

Tracking model history is an essential aspect of many problems encountered in web applications, from simple audit trails to preserving values of fields during state transitions. There are a wide array of approaches to do this with Django apps, almost all of which are subject to performance penalties, require unstructured JSON fields to track history, or can easily be bypassed accidentally in application code.
In this talk, we show a new way to to track history in Django with database triggers. We specifically focus on Postgres databases using the [django-pghistory](github.com/opus10/django-pghi...) app. We discuss the benefits of using database triggers for history in the context of simplicity, performance, and reliability. We also discuss the benefits of using structured history tables and how this can allow engineers to solve complex history-related modeling problems.
Attendees of this talk will be exposed to a totally new way to think about history tracking in their application, along with an understanding of the pros and cons of using database triggers to track history in practice.
This talk was presented at: 2023.djangocon.us/talks/using...
LINKS:
Follow Wes Kendall 👇
Follow Maxwell Muoto 👇
On Twitter: / maxmuoto
Follow DjangCon US 👇
fosstodon.org/@djangocon
/ djangocon
Follow DEFNA 👇
www.defna.org/
Video production by the presenter and DjangoCon US 2023 volunteers.

Опубликовано:

 

2 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
Passkeys on Django with Mohamed ElKalioby
17:01
Фэйворит жвачка А? (2024)
01:00
Просмотров 348 тыс.
치토스로 체감되는 요즘 물가
00:16
Просмотров 4,1 млн
When You Get Ran Over By A Car...
00:15
Просмотров 7 млн
Back to the Future of Hypermedia in Django
23:35
Просмотров 1 тыс.
Фэйворит жвачка А? (2024)
01:00
Просмотров 348 тыс.