Skip to content

Commit

Permalink
Merge pull request #443 from sparcs-kaist/hotfix/article-index-change
Browse files Browse the repository at this point in the history
[Hotfix] Remove index using created_at to prevent performance issue
  • Loading branch information
injoonH authored Feb 13, 2024
2 parents 06fc587 + 326d0c3 commit ec8f6f4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions apps/core/migrations/0057_alter_article_name_type_and_more.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,4 @@ class Migration(migrations.Migration):
verbose_name="익명 혹은 실명 여부",
),
),
migrations.AddIndex(
model_name="article",
index=models.Index(
fields=["created_at", "parent_board_id"],
name="created_at_parent_board_id_idx",
),
),
]
7 changes: 0 additions & 7 deletions apps/core/models/article.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,6 @@ class Meta(MetaDataModel.Meta):
verbose_name = "게시물"
verbose_name_plural = "게시물 목록"

indexes = [
models.Index(
fields=["created_at", "parent_board_id"],
name="created_at_parent_board_id_idx",
)
]

def __str__(self):
return self.title

Expand Down

0 comments on commit ec8f6f4

Please sign in to comment.