Query time 0.00084
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": "range",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"rows": 2,
"filtered": 100,
"index_condition": "cscart_categories.category_id in (1117,1118)",
"attached_condition": "(cscart_categories.usergroup_ids = '' or find_in_set(0,cscart_categories.usergroup_ids) or find_in_set(1,cscart_categories.usergroup_ids)) and cscart_categories.`status` in ('A','H') and cscart_categories.storefront_id in (0,1)"
},
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["cscart_dev.cscart_categories.category_id"],
"rows": 666,
"filtered": 99.99699402,
"attached_condition": "products_categories.product_id <> 67918",
"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": "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": "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": "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 |
17438 |
レガロ フロントマット CAR(45×60cm/) |
株式会社ビックカメラ |
P |
0 |
23822 |
レガロ フリーカット CAR(45×125cm/) |
株式会社ビックカメラ |
P |
0 |
37503 |
ミルカ フロントマット CAR(45×60cm/グレー) |
株式会社ビックカメラ |
P |
0 |
38852 |
【アルカリ電池】 LRV08/1BP [アルカリ] |
株式会社ビックカメラ |
P |
0 |
33142 |
ミルカ フリーカット CAR(45×125cm/グレー) |
株式会社ビックカメラ |
P |
0 |
67915 |
【通常在庫】ボンスター 大判厚手マイクロファイバークロス 400×400mm イエロー F-986 1パック(12枚) |
株式会社大塚商会 |
P |
0 |
67919 |
【通常在庫】ソフト99 フクピカ 洗車&ツヤ出し 1パック(12枚) |
株式会社大塚商会 |
P |
0 |
67921 |
【通常在庫】ソフト99 窓フクピカ 1パック(10枚) |
株式会社大塚商会 |
P |
0 |
67924 |
【通常在庫】ソフト99 窓フクピカ ジェル 80mL 1本 |
株式会社大塚商会 |
P |
0 |
67926 |
【通常在庫】マルテー東北石橋 ウォッシュデイ 洗車ブラシ(PP先割) ボディ用 WD-02 1本 |
株式会社大塚商会 |
P |
0 |