- getGetStoresSkusBaseSQL对于sku强制使用索引:FORCE INDEX(PRIMARY)

- sku的name_id, spec_quality, spec_unit, deleted_at改为唯一索引
This commit is contained in:
gazebo
2019-06-28 14:18:38 +08:00
parent be0aca2865
commit b0a2a672f9
2 changed files with 4 additions and 4 deletions

View File

@@ -228,9 +228,9 @@ type SkuAndName struct {
// }
// }
func (*Sku) TableIndex() [][]string {
func (*Sku) TableUnique() [][]string {
return [][]string{
[]string{"NameID", "SpecQuality", "SpecUnit", "DeletedAt"}, // todo 先设置为索引,之后应改为唯一索引
[]string{"NameID", "SpecQuality", "SpecUnit", "DeletedAt"},
}
}