summaryrefslogtreecommitdiffstats
path: root/core/views/caves.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-02-02 21:50:40 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2023-02-02 21:50:40 +0000
commite94a24bbd4c58748e44c2b0461d9a46acccdecd9 (patch)
tree8b7697b3c235838e0e16033e43e9c4dee0ba249b /core/views/caves.py
parente0a198bac522e138ef46f983b6c9455b17f787ce (diff)
downloadtroggle-e94a24bbd4c58748e44c2b0461d9a46acccdecd9.tar.gz
troggle-e94a24bbd4c58748e44c2b0461d9a46acccdecd9.tar.bz2
troggle-e94a24bbd4c58748e44c2b0461d9a46acccdecd9.zip
to-do lists updates
Diffstat (limited to 'core/views/caves.py')
-rw-r--r--core/views/caves.py11
1 files changed, 9 insertions, 2 deletions
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/
"""