Query time 0.00133
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "descr1.product, products.product_id",
"temporary_table": {
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "p_category_id",
"key_length": "3",
"used_key_parts": ["category_id"],
"rows": 8,
"filtered": 100,
"attached_condition": "cscart_categories.category_id in (167,165,168,169,170,171,172,201) and (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')",
"using_index": true
},
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["smscrm_edev.cscart_categories.category_id"],
"rows": 2,
"filtered": 100,
"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": ["smscrm_edev.products_categories.product_id"],
"rows": 1,
"filtered": 95.97764587,
"attached_condition": "products.parent_product_id = 0 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": "cscart_product_review_prepared_data",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "7",
"used_key_parts": ["product_id", "storefront_id"],
"ref": ["smscrm_edev.products_categories.product_id", "const"],
"rows": 1,
"filtered": 100
},
"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": ["smscrm_edev.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": ["smscrm_edev.products_categories.product_id"],
"rows": 2,
"filtered": 92.49011993,
"attached_condition": "prices.lower_limit = 1 and prices.usergroup_id in (0,0,1)",
"using_index": true
},
"block-nl-join": {
"table": {
"table_name": "companies",
"access_type": "ALL",
"possible_keys": ["PRIMARY"],
"rows": 2,
"filtered": 100,
"attached_condition": "companies.`status` = 'A'"
},
"buffer_type": "flat",
"buffer_size": "129Kb",
"join_type": "BNL",
"attached_condition": "companies.company_id = products.company_id"
}
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
average_rating |
product_reviews_count |
| 240 |
Apple iPad 2 [ブラック] |
CS-Cart.jp |
P |
0 |
|
|
| 241 |
Apple iPad 2 [ホワイト] |
CS-Cart.jp |
P |
0 |
5.00 |
3 |
| 214 |
ASUS CP6130 |
CS-Cart.jp |
P |
0 |
|
|
| 217 |
ASUS CP6230 |
CS-Cart.jp |
P |
0 |
|
|
| 218 |
ASUS Essentio CP1130 |
CS-Cart.jp |
P |
0 |
|
|
| 206 |
ASUS RT-N66U デュアルバンド ワイヤレスN900 ギガビットルーター |
CS-Cart.jp |
P |
0 |
|
|
| 207 |
Asus USB-N53 |
CS-Cart.jp |
P |
0 |
|
|
| 205 |
D-Link DIR-657 HDメディアルーター |
CS-Cart.jp |
P |
0 |
|
|
| 208 |
H.264 メガピクセル監視カメラ TL-SC3430 |
CS-Cart.jp |
P |
0 |
|
|
| 229 |
HP - 2711x27インチワイド LED液晶モニター |
CS-Cart.jp |
P |
0 |
|
|
| 211 |
HP Officejet Pro 8600 Plus |
CS-Cart.jp |
P |
0 |
|
|
| 210 |
HP Photosmart Plus B210a |
CS-Cart.jp |
P |
0 |
|
|
| 209 |
HP Scanjet G3110 スキャナ |
CS-Cart.jp |
P |
0 |
|
|
| 215 |
Intel® Core™ i7 Extreme Edition 980X – i7-980X |
CS-Cart.jp |
P |
0 |
|
|
| 226 |
Intel® Core™ i7 Processor i7-950 |
CS-Cart.jp |
P |
0 |
|
|
| 213 |
Intel® Core™ i7-2600 |
CS-Cart.jp |
P |
0 |
|
|
| 228 |
LG - D2342P-PN |
CS-Cart.jp |
P |
0 |
3.00 |
2 |
| 247 |
Nokia N1 Pad 7.9" Quad-Core 64bit 2.3GHz 2GB 32GB Android 5.0 |
CS-Cart.jp |
P |
0 |
2.67 |
3 |
| 227 |
エイサー - 3Dシリーズ HN274H |
CS-Cart.jp |
P |
0 |
|
|
| 225 |
サムスン Galaxy Tab™ 7.0" (Verizonモデル) |
CS-Cart.jp |
P |
0 |
|
|
| 224 |
サムスン Galaxy Tab™ 8.9 (AT&Tモデル) |
CS-Cart.jp |
P |
0 |
4.50 |
2 |
| 223 |
サムスン Galaxy Tab™ 8.9 (Wi-Fiモデル) - 32GB メタリックグレイ |
CS-Cart.jp |
P |
0 |
|
|
| 219 |
サムスン Series 3 15.6インチ |
CS-Cart.jp |
P |
0 |
|
|
| 222 |
サムスン Series 3 15.6インチ |
CS-Cart.jp |
P |
0 |
|
|
| 220 |
サムスン Series 7 14インチ |
CS-Cart.jp |
P |
0 |
|
|
| 221 |
サムスン Series 9 13.3インチ |
CS-Cart.jp |
P |
0 |
|
|
| 244 |
パッカード・ベル OneTwo |
CS-Cart.jp |
P |
0 |
4.33 |
3 |
| 212 |
パナソニック A4モノクロレーザー複合機 KX-MB2000 |
CS-Cart.jp |
P |
0 |
|
|