Query time 0.00068
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "popularity.total desc, products.product_id",
"temporary_table": {
"table": {
"table_name": "cscart_categories",
"access_type": "const",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["const"],
"rows": 1,
"filtered": 100
},
"table": {
"table_name": "products_categories",
"access_type": "range",
"possible_keys": ["PRIMARY", "pt"],
"key": "PRIMARY",
"key_length": "6",
"used_key_parts": ["category_id", "product_id"],
"rows": 21,
"filtered": 100,
"attached_condition": "products_categories.category_id = 1640 and products_categories.product_id <> 61425",
"using_index": true
},
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status", "idx_parent_product_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["cscart_dev.products_categories.product_id"],
"rows": 1,
"filtered": 95.77764893,
"attached_condition": "products.parent_product_id = 0 and (products.amount > 0 or products.tracking = 'D') and (products.usergroup_ids = '' or find_in_set(0,products.usergroup_ids) or find_in_set(1,products.usergroup_ids)) and products.`status` = 'A' and products.product_type <> 'D'"
},
"table": {
"table_name": "companies",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["company_id"],
"ref": ["cscart_dev.products.company_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "companies.`status` = 'A'"
},
"table": {
"table_name": "descr1",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "product_id"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["product_id", "lang_code"],
"ref": ["cscart_dev.products_categories.product_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'ja')"
},
"table": {
"table_name": "popularity",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "total"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["cscart_dev.products_categories.product_id"],
"rows": 1,
"filtered": 100
},
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["cscart_dev.products_categories.product_id"],
"rows": 1,
"filtered": 98.93707275,
"attached_condition": "prices.lower_limit = 1 and prices.usergroup_id in (0,0,1)"
}
}
}
}
}
Result
product_id |
product |
company_name |
product_type |
parent_product_id |
61414 |
【お取り寄せ】OM SYSTEM ステレオマイクロホンセット ME51SW 1個 |
株式会社大塚商会 |
P |
0 |
61419 |
【お取り寄せ】オーディオテクニカ デスク・マイクスタンド AT8652 1個 |
株式会社大塚商会 |
P |
0 |
61420 |
【お取り寄せ】オーディオテクニカ マイクスタンド AT8653S 1個 |
株式会社大塚商会 |
P |
0 |
61423 |
【お取り寄せ】オーディオテクニカ デジタルワイヤレストランスミッター ATW-T190BP 1台 |
株式会社大塚商会 |
P |
0 |
61424 |
【お取り寄せ】オーディオテクニカ ラベリアマイクロホン AT829H/P 1個 |
株式会社大塚商会 |
P |
0 |
61428 |
【通常在庫】キングジム マイク型拡声器 スピーカー付きマイク SPMC10-BK 1本 |
株式会社大塚商会 |
P |
0 |
70712 |
ゲーミングマイク |
株式会社ビックカメラ |
P |
0 |
61418 |
【お取り寄せ】オーディオテクニカ マイクホルダー AT8456A 1個 |
株式会社大塚商会 |
P |
0 |
61422 |
【通常在庫】オーディオテクニカ デジタルワイヤレスマイクロホン ATW-T190MIC 1個 |
株式会社大塚商会 |
P |
0 |
61429 |
【お取り寄せ】キングジム スピーカー付きマイク対応スタンド SPMS1-BK 1個 |
株式会社大塚商会 |
P |
0 |