Add index for finding all statuses in a thread
This commit is contained in:
parent
5082806b82
commit
5cfe7eca6f
2 changed files with 20 additions and 0 deletions
|
@ -82,6 +82,7 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
|
|||
ordering = ("-published_date",)
|
||||
indexes = [
|
||||
models.Index(fields=["remote_id"]),
|
||||
models.Index(fields=["thread_id"]),
|
||||
]
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue