New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meta: 📈 Performance #943
Comments
FYI: one quick way to display executed SQL queries is adding a a logger to the "django.db.backends": {
"level": "DEBUG",
"handlers": [],
}, |
FYI: A while ago I closed #944 without further ado, however meanwhile I found, that there are some cases, where there are duplicated queries in the same call. In this cases it seems, that using djangos |
We may consider to cache the result or Matomo requests |
@ulliholtgrave I removed the "statistics" from the list as we do not have any relevant database calls in our CMS regarding statistics. Right? This issue is then basically "done". We also do not have any performance issues right now. |
Motivation
Our current code basis includes a lot of duplicate calls to our database. They should be removed towards an efficient performance level.
Proposed Solution
Check the following:
For more insight into the topic, you might want to read: https://docs.djangoproject.com/en/3.2/topics/performance/
For the following models the views, templates, models and api should be examined. Furthermore, their respective occurrence in utils should be investigated.
An idea could be removing the 'chat_last_visited' from the user model and put this in a cookie.Edit: This is probably a bad idea, since many users might delete their cookies after closing the browser. See https://github.com/Integreat/integreat-cms/blob/04b6a165e6afa8ab9313650c7803ed648d94417a/src/cms/models/users/user.py#L42)The text was updated successfully, but these errors were encountered: