Skip to content

Commit 032cac1

Browse files
committed
refactor: Company Index industry, scale, created_at Apply #95
1 parent 367a2db commit 032cac1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/sopt/comfit/company/domain/Company.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
@Entity
1111
@Getter
1212
@NoArgsConstructor(access = AccessLevel.PROTECTED)
13-
@Table(name = "companies")
13+
@Table(name = "companies", indexes = {
14+
@Index(name = "idx_company_industry_scale_created", columnList = "industry, scale, created_at DESC")
15+
})
1416
public class Company extends BaseTimeEntity {
1517
@Id
1618
@GeneratedValue(strategy = GenerationType.IDENTITY)

0 commit comments

Comments
 (0)