Skip to content

Commit

Permalink
index 추가 (#33)
Browse files Browse the repository at this point in the history
* feat: Cascade 설정

* feat: index 추가중

* feat: 조회 성능 향상을 위한 index 추가
  • Loading branch information
ChungPlusPlus authored Feb 2, 2025
1 parent 801de92 commit 02fbca5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import jakarta.persistence.*
import java.time.Instant

@Entity
@Table(name = "reply")
@Table(
name = "reply",
indexes = [jakarta.persistence.Index(name = "idx__createdAt", columnList = "created_at")]
)
data class ReplyEntity(
@Id
@GeneratedValue(strategy = GenerationType.UUID)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import jakarta.persistence.*
import java.time.Instant

@Entity
@Table(name = "reviews")
@Table(
name = "reviews",
indexes = [Index(name = "idx__createdAt", columnList = "created_at")]
)
class ReviewEntity(
@Id
@GeneratedValue(strategy = GenerationType.UUID)
Expand Down

0 comments on commit 02fbca5

Please sign in to comment.