Comments (2)
I think I've tracked it down to this:
https://github.com/ellmetha/django-machina/blob/main/machina/apps/forum_tracking/handler.py#L137
Seems to be what fires on every page and generates the query in the OP. From what I'm seeing, it's incredibly slow for new users and basically instant for those already using the site.
from django-machina.
Just a followup - I removed the Q and from line 141 in the file linked above as we did not require Forum read checking, and it brought our DB load from ~80% to 5%. That's a big performance hit query that thankfully we didn't need, but others may need to work around / improve.
from django-machina.
Related Issues (20)
- Postgres full text search for django-machina is about to be ready
- subquery has too many columns LINE 1: ...= "auth_user"."id") WHERE NOT ("forum_forum"."id" IN (SELECT...
- UniqueViolation when loading data (loaddata with a fixture) HOT 3
- forum_moved = django.dispatch.Signal(providing_args=["previous_parent", ]) HOT 4
- is it possible to display the reply button for non-authentified users ?
- Django 4 support HOT 1
- App override gets django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: forum_permission HOT 1
- Consider using different template block names.
- Edit post as anonymous user HOT 2
- Preview while creating a new post with a large attachment results into "AttributeError: '_io.BytesIO' object has no attribute 'name'"
- Template modification - Nav bar HOT 1
- Forum URL Format HOT 2
- Is django 4.1.x supported? HOT 4
- Greek translations HOT 1
- Display post times in local time
- Django-MPTT is unmaintained. Migrate to Django-Treebeard? HOT 3
- Alex6979
- module 'PIL.Image' has no attribute 'ANTIALIAS' with dependency pillow >= 10.0.0 HOT 4
- how to use fontawsome 6 instead of builtin fontawsome 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-machina.