Query time 0.00243
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "cscart_categories.position, products_categories.category_id, products_categories.position, products.product_id",
"temporary_table": {
"table": {
"table_name": "companies",
"access_type": "system",
"possible_keys": ["PRIMARY"],
"rows": 1,
"filtered": 100
},
"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": 6,
"filtered": 100,
"index_condition": "cscart_categories.category_id in (255,287,288,289,290,294)",
"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": ["markins_test.cscart_categories.category_id"],
"rows": 20,
"filtered": 100
},
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["markins_test.products_categories.product_id"],
"rowid_filter": {
"range": {
"key": "status",
"used_key_parts": ["status"]
},
"rows": 192,
"selectivity_pct": 60.56782334
},
"rows": 1,
"filtered": 60.5678215,
"attached_condition": "products.company_id = 1 and (products.usergroup_ids = '' or find_in_set(0,products.usergroup_ids) or find_in_set(1,products.usergroup_ids)) and products.`status` = 'A'"
},
"table": {
"table_name": "shared_descr",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "product_id", "company_id"],
"key": "PRIMARY",
"key_length": "13",
"used_key_parts": ["product_id", "lang_code", "company_id"],
"ref": ["markins_test.products_categories.product_id", "const", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(shared_descr.lang_code = 'ja')"
},
"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": ["markins_test.products_categories.product_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'ja')"
},
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "usergroup",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["markins_test.products_categories.product_id"],
"rows": 2,
"filtered": 56.08769226,
"attached_condition": "prices.lower_limit = 1 and prices.usergroup_id in (0,0,1)",
"using_index": true
}
}
}
}
}
Result
product_id |
product |
company_name |
category_position |
category_id |
256 |
マーキンス Q3i-RD ノブシュー 自由雲台 |
Trinple |
20 |
255 |
253 |
マーキンス Q3iTRQ-BK レバーシュー トラベラーモデル 自由雲台 |
Trinple |
20 |
255 |
254 |
マーキンス Q3iTRQ-RD レバーシュー トラベラーモデル 自由雲台 |
Trinple |
20 |
255 |
425 |
マーキンス Q3iTRQ-BL レバーシュー トラベラーモデル 自由雲台 |
Trinple |
20 |
255 |
251 |
マーキンス Q3iTR-BK ノブシュー トラベラーモデル 自由雲台 |
Trinple |
20 |
255 |
252 |
マーキンス Q3iTR-RD ノブシュー トラベラーモデル 自由雲台 |
Trinple |
20 |
255 |
426 |
マーキンス Q3iTR-BL ノブシュー トラベラーモデル 自由雲台 |
Trinple |
20 |
255 |
599 |
マーキンス Q3iTRPs-BK パノラマシュー トラベラーモデル 自由雲台 |
Trinple |
20 |
255 |
600 |
マーキンス Q3iTRPs-RD パノラマシュー トラベラーモデル 自由雲台 |
Trinple |
20 |
255 |
601 |
マーキンス Q3iTRPs-BL パノラマシュー トラベラーモデル 自由雲台 |
Trinple |
20 |
255 |
257 |
マーキンス Q3iQ-BK レバーシュー 自由雲台 |
Trinple |
20 |
255 |
258 |
マーキンス Q3iQ-RD レバーシュー 自由雲台 |
Trinple |
20 |
255 |
525 |
マーキンス Q3iQ-BL レバーシュー 自由雲台 |
Trinple |
20 |
255 |
255 |
マーキンス Q3i-BK ノブシュー 自由雲台 |
Trinple |
20 |
255 |
526 |
マーキンス Q3i-BL ノブシュー 自由雲台 |
Trinple |
20 |
255 |
602 |
マーキンス Q3iPs-BK パノラマシュー 自由雲台 |
Trinple |
20 |
255 |