Bewegte Bilder

Aggregating data in Django using database views

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.

Standort
Hannover TIB
Umfang
154MB, 00:29:45:47 (unknown)
Sprache
Englisch
Anmerkungen
Audiovisuelles Material

Erschienen in
EuroPython 2024 ; (Jan. 2024)

Ereignis
Veröffentlichung
(wer)
EuroPython
(wann)
2024-01-01
Beteiligte Personen und Organisationen
Poul, Mikuláš
N. N. (Moderation)

DOI
10.5446/69400
Letzte Aktualisierung
21.04.2026, 10:51 MESZ

Datenpartner

Dieses Objekt wird bereitgestellt von:
Technische Informationsbibliothek (TIB). Bei Fragen zum Objekt wenden Sie sich bitte an den Datenpartner.

Objekt beim Datenpartner anzeigen

Objekttyp

  • zweidimensionales bewegtes Bild

Beteiligte

  • Poul, Mikuláš
  • N. N. (Moderation)
  • EuroPython

Entstanden

  • 2024-01-01

Ähnliche Objekte (12)