- getGetStoresSkusBaseSQL对于sku强制使用索引:FORCE INDEX(PRIMARY)
- sku的name_id, spec_quality, spec_unit, deleted_at改为唯一索引
This commit is contained in:
@@ -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"},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user