ErwinKomen / RU-wnd

Dutch language dialect dictionaries, Radboud University Nijmegen
0 stars 0 forks source link

e-WLD: Increase speed #41

Closed ErwinKomen closed 3 years ago

ErwinKomen commented 6 years ago

Try out and implement several methods to increase speed.

  1. Let changes in the toonbaar field of Aflevering ripple through to the instances of other classes:
    1. Implement and update toonbaar in Lemma
    2. Implement and update toonbaar in Trefwoord
    3. Implement and update toonbaar in Dialect
ErwinKomen commented 6 years ago

Okay, I've done the above by adding change_toonbaar() to the models Lemma, Trefwoord and Dialect. These methods are called whenever the toonbaar field of one of the Aflevering instances is changed and saved.

ErwinKomen commented 6 years ago

Next step: adapt the get_queryset() methods in views classes LemmaListView, DialectListView, LocationListView and TrefwoordListView

ErwinKomen commented 6 years ago

Okay, I've done that. Tremendous increase in speed. And all much truer than it was before. Success!! GRACE!!