vbv/server/vbv_lernwelt/media_library
Daniel Egger 45533e0b2d Refactor `frontend_url` calculation to avoid DB access and improve
performance

Das initiale Laden des Lernpfads dauerte so lange, weil das berechnen
des Felds `frontend_url` sehr viele DB-Zugriffe auf die jeweiligen
"parents" einer Page machten.
Die gleiche Berechnung kann man aber auch direkt aus dem `slug`
ohne Zugriff auf die Parents machen.
Das wurde hier gemacht. Das ganze beruht darauf, dass die page-`slug`
in einem bestimmten Format ist. Um das weiter zu bearbeiten,
habe ich VBV-296 erstellt.
2023-03-17 11:12:42 +01:00
..
migrations Format files 2023-02-13 09:37:47 +01:00
tests Fix cypress tests 2022-12-14 22:05:10 +01:00
__init__.py Add media_library app 2022-08-18 11:35:59 +02:00
admin.py Add media_library app 2022-08-18 11:35:59 +02:00
apps.py Add code formatting with prettier and black 2022-09-30 17:43:06 +02:00
content_blocks.py Anpassung "Verankerung im Lernpfad" 2022-10-05 15:29:29 +02:00
create_default_documents.py Add code formatting with prettier and black 2022-09-30 17:43:06 +02:00
create_default_media_library.py Add Handlungsfelder SVGs 2023-01-31 08:13:05 +01:00
models.py Refactor `frontend_url` calculation to avoid DB access and improve 2023-03-17 11:12:42 +01:00
test_data.py Add code formatting with prettier and black 2022-09-30 17:43:06 +02:00
views.py Refactor 2022-09-23 15:14:42 +02:00