{
"query_block": {
"select_id": 1,
"read_sorted_file": {
"filesort": {
"sort_key": "a.position, a.variant_id",
"table": {
"table_name": "a",
"access_type": "ref",
"possible_keys": ["status", "option_id", "option_id_2"],
"key": "status",
"key_length": "3",
"used_key_parts": ["status"],
"ref": ["const"],
"rowid_filter": {
"range": {
"key": "option_id_2",
"used_key_parts": ["option_id"]
},
"rows": 8,
"selectivity_pct": 25
},
"rows": 32,
"filtered": 25,
"index_condition": "a.`status` = 'A'",
"attached_condition": "a.`status` <=> 'A' and a.option_id in (2,10)"
}
}
},
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["variant_id", "lang_code"],
"ref": ["smscrm_edev.a.variant_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(b.lang_code = 'ja')"
}
}
}
| variant_id | option_id | position | modifier | modifier_type | weight_modifier | weight_modifier_type | variant_name |
|---|---|---|---|---|---|---|---|
| 36 | 10 | 0 | 0.000 | A | 0.000 | A | グレーヘザー/コアエネルギー |
| 37 | 10 | 0 | 0.000 | A | 0.000 | A | カーディナル/プライムイエロー |
| 38 | 10 | 0 | 0.000 | A | 0.000 | A | フェアウェイ/ホワイト |
| 6 | 2 | 10 | 0.000 | A | 0.000 | A | S |
| 10 | 2 | 20 | 0.000 | A | 0.000 | A | M |
| 9 | 2 | 30 | 0.000 | A | 0.000 | A | L |
| 8 | 2 | 40 | 0.000 | A | 0.000 | A | XL |
| 7 | 2 | 50 | 0.000 | A | 0.000 | A | XXL |