Add Index on dept column pid

Add Index on dept.pid to Accelerate Query
pull/292/head
wtune 2020-03-13 14:03:11 +08:00 committed by GitHub
parent 800571e581
commit 1d37221908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,8 @@ import java.util.Set;
@Entity
@Getter
@Setter
@Table(name="dept")
@Table(name="dept",
indexes={@Index(name = "dept_pid", columnList = "pid")})
public class Dept implements Serializable {
@Id