mirror of https://github.com/elunez/eladmin
Add Index on dict.name to Accelerate Query
Add Index on dict.name to Accelerate Querypull/292/head
parent
9729e260a1
commit
31a446be7f
|
@ -18,7 +18,8 @@ import java.util.List;
|
||||||
@Entity
|
@Entity
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
@Table(name="dict")
|
@Table(name="dict",
|
||||||
|
indexes={@Index(name = "dict_name", columnList = "name")})
|
||||||
public class Dict implements Serializable {
|
public class Dict implements Serializable {
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
|
@ -42,4 +43,4 @@ public class Dict implements Serializable {
|
||||||
private List<DictDetail> dictDetails;
|
private List<DictDetail> dictDetails;
|
||||||
|
|
||||||
public @interface Update {}
|
public @interface Update {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue