Aggregating data in Django using database views - Mikuláš Poul

  Рет қаралды 272

EuroPython Conference

EuroPython Conference

Күн бұрын

[EuroPython 2024 - South Hall 2A on 2024-07-10]
Aggregating data in Django using database views by Mikuláš Poul
ep2024.europyt...
Aggregating information is a common Django task, but using the aggregate method can be a bit cumbersome and in the case of large database tables, pretty slow as well. I will introduce the library django-pgviews-redux, which adds first-class support for database views (with Postgres), making that task much simpler.
With that library, database views are wrapped around models, meaning you get many of the features you rely on with models for free, like querysets and filtering on those, admin, and any other feature which works with models. Defining a view is almost as simple as defining a model, by specifying what fields there are for the model and defining the SQL.
This talk will walk through examples of aggregation in Django, and then show how one could simplify those examples using the library. Finally, we will get to materialized views as well, which stores the aggregation almost like a table in the database, providing big speed improvements on aggregation on large tables.
---
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License: creativecommon...

Пікірлер
DFD(Documentation-First Development) with FastAPI - Taehyun Lee
37:23
EuroPython Conference
Рет қаралды 132
Is your database designed for AI? - JP Hwang
25:56
pyGrunn and aiGrunn Conferences
Рет қаралды 75
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
How to deliver 3x faster with effective API design - Michal Cyprian
29:17
EuroPython Conference
Рет қаралды 950
Keeping your projects nice and clean - Jan Musílek
28:59
EuroPython Conference
Рет қаралды 524
Invent with PyScript - Nicholas Tollervey, Joshua Lowe
29:07
EuroPython Conference
Рет қаралды 615
SPy (Static Python) lang: fast as C, Pythonic as Python - Antonio Cuni
44:02
I reverse engineered a work of art, and this is what I learned - Yair Galler
28:38
How to sell a big refactor or rewrite to the business? - Ivett Ördög
42:21
Why should we all be hyped about inclusive leadership? - Tereza Iofciu
46:50
AI attacking AI is here (The New AI Red Team)
27:06
David Bombal
Рет қаралды 3,7 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН