Skip to content

Commit d69c9df

Browse files
authored
Optimize Index time database query (#8224)
1 parent 4924598 commit d69c9df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

readthedocs/search/documents.py

+1
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,6 @@ def get_queryset(self):
168168
queryset
169169
.internal()
170170
.exclude(ignore=True)
171+
.select_related('version', 'project')
171172
)
172173
return queryset

0 commit comments

Comments
 (0)