Query time 0.00330
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "products.`timestamp` desc, products.product_id",
"temporary_table": {
"table": {
"table_name": "cscart_categories",
"access_type": "index",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "p_category_id",
"key_length": "773",
"used_key_parts": ["category_id", "usergroup_ids", "status"],
"rows": 83,
"filtered": 100,
"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')",
"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": 97.23320007,
"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": 3,
"filtered": 100,
"attached_condition": "companies.`status` = 'A'"
},
"buffer_type": "flat",
"buffer_size": "1320Kb",
"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 |
| 25 |
サムスン - HW-D7000 Blu-rayディスク®プレーヤー内蔵AVレシーバー |
CS-Cart.jp |
P |
0 |
|
|
| 26 |
[洋書] Mac OS X Lion: The Missing Manual |
CS-Cart.jp |
P |
0 |
|
|
| 27 |
アディダス トレフォイル ロゴフーディー |
CS-Cart.jp |
P |
0 |
|
|
| 28 |
Run Perf 7/8 Ti |
CS-Cart.jp |
P |
0 |
|
|
| 29 |
TomTom GO LIVE Top Gearエディション |
CS-Cart.jp |
P |
0 |
|
|
| 30 |
TomTom - GO 2535 TM WTE |
CS-Cart.jp |
P |
0 |
|
|
| 31 |
ナイキ レディス ジャージショートパンツ |
CS-Cart.jp |
P |
0 |
|
|
| 32 |
Garmin - nüvi® 3450 |
CS-Cart.jp |
P |
0 |
|
|
| 33 |
Garmin - nüvi® 2455LT |
CS-Cart.jp |
P |
0 |
|
|
| 34 |
ナイキ "Untouchable" タンクトップ |
CS-Cart.jp |
P |
0 |
|
|
| 35 |
[洋書] Managing Enterprise Content: A Unified Content Strategy, 2nd Edition |
CS-Cart.jp |
P |
0 |
|
|
| 36 |
[洋書] Routing Protocols and Concepts: CCNA Exploration Companion Guide |
CS-Cart.jp |
P |
0 |
|
|
| 37 |
ケンウッド DPX308U |
CS-Cart.jp |
P |
0 |
|
|
| 38 |
ナイキ x FUTURA レディスTシャツ |
CS-Cart.jp |
P |
0 |
|
|
| 39 |
パイオニア DEH-80PRS |
CS-Cart.jp |
P |
0 |
|
|
| 40 |
パイオニア DEH-P8400BH |
CS-Cart.jp |
P |
0 |
|
|
| 41 |
ギフトセット (ワンジーと靴下) |
CS-Cart.jp |
P |
0 |
|
|
| 42 |
パイオニア DEH-1300MP |
CS-Cart.jp |
P |
0 |
|
|
| 43 |
パイオニア FH-P8000BT |
CS-Cart.jp |
P |
0 |
|
|
| 44 |
[洋書] U.S. History and Government, Second Edition |
CS-Cart.jp |
P |
0 |
|
|
| 45 |
[洋書] The Process of Research in Psychology |
CS-Cart.jp |
P |
0 |
|
|
| 46 |
[洋書] The Official SAT Study Guide: Second Edition(TM) |
CS-Cart.jp |
P |
0 |
|
|
| 47 |
マーヴル VS. カプコン 3 フェイト オブ トゥー ワールド(PS3) |
CS-Cart.jp |
P |
0 |
|
|
| 48 |
パイオニア TS-MR2040 |
CS-Cart.jp |
P |
0 |
|
|
| 49 |
パイオニア TS-MR1640 |
CS-Cart.jp |
P |
0 |
|
|
| 50 |
パイオニア TS-D1720C |
CS-Cart.jp |
P |
0 |
|
|
| 51 |
パイオニア TS-D6902R |
CS-Cart.jp |
P |
0 |
|
|
| 52 |
ケンウッド KFC-W3013PS |
CS-Cart.jp |
P |
0 |
|
|
| 53 |
ケンウッド KFC-W3012 |
CS-Cart.jp |
P |
0 |
|
|
| 54 |
パイオニア TS-W3002D2|D4 |
CS-Cart.jp |
P |
0 |
|
|
| 55 |
パイオニア - PRS-D800 |
CS-Cart.jp |
P |
0 |
|
|
| 56 |
パイオニア - GM-6500F |
CS-Cart.jp |
P |
0 |
|
|
| 57 |
パイオニア - GM-D8500M |
CS-Cart.jp |
P |
0 |
|
|
| 58 |
パイオニア - AVH-P8400BH |
CS-Cart.jp |
P |
0 |
|
|
| 59 |
パイオニア - AVH-P4400BH |
CS-Cart.jp |
P |
0 |
|
|
| 60 |
パイオニア AVIC-Z130BT |
CS-Cart.jp |
P |
0 |
|
|
| 62 |
Cobra- XRS 9945 |
CS-Cart.jp |
P |
0 |
|
|
| 63 |
Cobra - XRS 9770 |
CS-Cart.jp |
P |
0 |
|
|
| 64 |
Cobra - XRS 9745 |
CS-Cart.jp |
P |
0 |
|
|
| 65 |
Cobra - XRS 9370 |
CS-Cart.jp |
P |
0 |
|
|
| 67 |
HTC - ワイルドファイア S - ホワイト |
CS-Cart.jp |
P |
0 |
|
|
| 68 |
HTC - Titan |
CS-Cart.jp |
P |
0 |
|
|
| 69 |
HTC - Rhyme |
CS-Cart.jp |
P |
0 |
|
|
| 70 |
HTC - EVO Design 4G |
CS-Cart.jp |
P |
0 |
|
|
| 71 |
HTC - DROID INCREDIBLE 2 |
CS-Cart.jp |
P |
0 |
|
|
| 72 |
モトローラ - DROID RAZR |
CS-Cart.jp |
P |
0 |
|
|
| 73 |
モトローラ - DROID BIONIC |
CS-Cart.jp |
P |
0 |
|
|
| 74 |
モトローラ - Droid 3 |
CS-Cart.jp |
P |
0 |
|
|
| 75 |
モトローラ - DROID PRO |
CS-Cart.jp |
P |
0 |
|
|
| 76 |
モトローラ - FLIPSIDE |
CS-Cart.jp |
P |
0 |
|
|
| 4 |
サムスン - 5003シリーズ 40インチ LED TV |
CS-Cart.jp |
P |
0 |
|
|