Closed ErwinKomen closed 2 years ago
I sped up the reaction to LemmaListView
in the following way:
Lower()
in the main queryset request (I've made all lemma_gloss fields into lower case).exclude(lemma_avoid_list)
settings.py
, to the TEMPLATES
section: django.template.loaders.cached.Loader
list()
to force evaluation on a number of placesI also sped up the reaction of TrefwoordListView
, by only using (2.ii) from above.
And I've migrated to django version 1.11
TODO: speed up the reaction of Plaatsen
Okay, well, speeding up the reaction on "plaatsen" (locations) should perhaps be done in two steps:
d*
yields 20 hits)That might speed it up enough
dialect_list.html
to make use of layout.html
.topnav.html
by adding 'topdialectsearch'. This will in the future replace 'toplocationsearch'.diadict.js
to handle the topdialectsearch
correctlyLemmaListView
to use iexact
matching rather than iregex
, if no regular expression is usedAlso adapted TrefwoordListView and LemmaListView to use iexact
matching rather than iregex
when it comes to the search
part itself. This makes a speed difference.
Speed-up the reaction on a request from: