From e94a24bbd4c58748e44c2b0461d9a46acccdecd9 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 2 Feb 2023 21:50:40 +0000 Subject: to-do lists updates --- core/views/caves.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'core/views/caves.py') diff --git a/core/views/caves.py b/core/views/caves.py index c970f52..fa5e7ef 100644 --- a/core/views/caves.py +++ b/core/views/caves.py @@ -21,8 +21,15 @@ from .auth import login_required_if_public Manages the use of cavern to parse survex files to produce 3d and pos files """ -todo = """- Fix rendercave() so that CaveView works -- in getCaves() search GCavelookup first, which should raise a MultpleObjectsReturned exception if no duplicates +todo = """ +- Fix rendercave() so that CaveView works + +- in getCaves() search GCavelookup first, which should raise a MultpleObjectsReturned + exception if no duplicates + +- Learn to use Django .select_related() and .prefetch_related() to speed things up + especially on the big report pages + https://zerotobyte.com/how-to-use-django-select-related-and-prefetch-related/ """ -- cgit v1.2.3