Skip to content

Commit b358f8f

Browse files
committed
Speed up the tag index page
Excluding spam projects from the tag index page really slows it down. This involves a project-project self join and then joining against users and the user profile. Each of these tables is a few 100k records.
1 parent be2175f commit b358f8f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

readthedocs/projects/views/public.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ class ProjectTagIndex(ListView):
5454

5555
def get_queryset(self):
5656
queryset = Project.objects.public(self.request.user)
57-
queryset = queryset.exclude(users__profile__banned=True)
5857

5958
self.tag = get_object_or_404(Tag, slug=self.kwargs.get('tag'))
6059
queryset = queryset.filter(tags__slug__in=[self.tag.slug])

0 commit comments

Comments
 (0)