Add Index on dict.name to Accelerate Query

Add Index on dict.name to Accelerate Query
pull/292/head
wtune 2020-03-13 14:37:06 +08:00 committed by GitHub
parent 9729e260a1
commit 31a446be7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,8 @@ import java.util.List;
@Entity
@Getter
@Setter
@Table(name="dict")
@Table(name="dict",
indexes={@Index(name = "dict_name", columnList = "name")})
public class Dict implements Serializable {
@Id
@ -42,4 +43,4 @@ public class Dict implements Serializable {
private List<DictDetail> dictDetails;
public @interface Update {}
}
}