mirror of https://github.com/halo-dev/halo
feat: add index on categories.name and categories.parent_id (#658)
* Add Index on categories.name * Add Index on categories.name and categories.parent_idpull/662/head
parent
124f352ebb
commit
c1f01df394
|
@ -16,7 +16,9 @@ import javax.persistence.*;
|
|||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "categories")
|
||||
@Table(name = "categories",
|
||||
indexes = {@Index(name = "categories_name", columnList = "name"),
|
||||
@Index(name = "categories_parent_id", columnList = "parent_id")})
|
||||
@ToString
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class Category extends BaseEntity {
|
||||
|
|
Loading…
Reference in New Issue