Query time 0.00205
JSON explain
{
"query_block": {
"select_id": 1,
"temporary_table": {
"table": {
"table_name": "war_sum_amount",
"access_type": "system",
"possible_keys": ["PRIMARY"],
"rows": 0,
"filtered": 0,
"const_row_not_found": true
},
"table": {
"table_name": "warehouses_destination_products_amount",
"access_type": "system",
"possible_keys": ["PRIMARY", "idx_storefront_id"],
"rows": 0,
"filtered": 0,
"const_row_not_found": true
},
"table": {
"table_name": "cscart_categories",
"access_type": "ALL",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"rows": 99,
"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') and cscart_categories.storefront_id in (0,2)"
},
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["cscart_purchase_fl_com.cscart_categories.category_id"],
"rows": 1,
"filtered": 100,
"using_index": true
},
"table": {
"table_name": "variation_group_products",
"access_type": "ref",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["cscart_purchase_fl_com.products_categories.product_id"],
"rows": 1,
"filtered": 34.12698364,
"attached_condition": "variation_group_products.group_id in (54,49,25,51,19,50,55,48,35,13,32,27)",
"using_index": true
},
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["cscart_purchase_fl_com.products_categories.product_id"],
"rows": 1,
"filtered": 99.34210205,
"attached_condition": "(case products.is_stock_split_by_warehouses when 'Y' then NULL else products.amount end > 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'"
},
"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": [
"cscart_purchase_fl_com.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": ["cscart_purchase_fl_com.products_categories.product_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'ja')"
},
"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": "256Kb",
"join_type": "BNL",
"attached_condition": "companies.company_id = products.company_id"
}
}
}
}
Result
product_id |
amount |
product |
company_name |
variation_group_id |
product_type |
parent_product_id |
141 |
1 |
「PEACE FREEDOM LOVE MONEY...HAPPY」Tシャツ |
World Design Connect 公式ECサイト |
13 |
P |
0 |
143 |
1 |
ピンの並びが気持ちいい!「STRIKE」Tシャツ |
World Design Connect 公式ECサイト |
35 |
P |
0 |
144 |
1 |
プログラミングの基本!「Hello World!」Tシャツ |
World Design Connect 公式ECサイト |
48 |
P |
0 |
145 |
1 |
鉛筆ってそうだよね!「CREATE DESTROY」 Tシャツ |
World Design Connect 公式ECサイト |
54 |
P |
0 |
147 |
1 |
スマホのロック外してる?「Unlock Me」Tシャツ |
World Design Connect 公式ECサイト |
27 |
P |
0 |
148 |
2 |
今日の予定は何もない!「to-do list」Tシャツ |
World Design Connect 公式ECサイト |
55 |
P |
0 |
158 |
1 |
「PEACE FREEDOM LOVE MONEY...HAPPY」Tシャツ |
World Design Connect 公式ECサイト |
13 |
V |
141 |
280 |
1 |
点をつなぐとロボットが出現!「2進数ロボット」Tシャツ |
World Design Connect 公式ECサイト |
50 |
P |
0 |
282 |
1 |
白と黒模様を持った動物が大集合!「ブラック&ホワイトアニマル」Tシャツ |
World Design Connect 公式ECサイト |
51 |
P |
0 |
287 |
1 |
鉛筆ってそうだよね!「CREATE DESTROY」 Tシャツ |
World Design Connect 公式ECサイト |
54 |
V |
145 |
289 |
1 |
今日の予定は何もない!「to-do list」Tシャツ |
World Design Connect 公式ECサイト |
55 |
V |
148 |
111 |
1 |
山奥の谷間で横笛を吹くパンダ「横笛パンダ」Tシャツ |
World Design Connect 公式ECサイト |
32 |
P |
0 |
139 |
2 |
ゴッホに扮したパンダが渋い!「スモーキング・パンダ」Tシャツ |
World Design Connect 公式ECサイト |
25 |
P |
0 |
179 |
5 |
あの有名なアルバムジャケットを再現?「COME TOGETHER」Tシャツ |
World Design Connect 公式ECサイト |
19 |
P |
0 |
180 |
2 |
あの有名なアルバムジャケットを再現?「COME TOGETHER」Tシャツ |
World Design Connect 公式ECサイト |
19 |
V |
179 |
191 |
1 |
ゴッホに扮したパンダが渋い!「スモーキング・パンダ」Tシャツ |
World Design Connect 公式ECサイト |
25 |
V |
139 |
211 |
1 |
山奥の谷間で横笛を吹くパンダ「横笛パンダ」Tシャツ |
World Design Connect 公式ECサイト |
32 |
V |
111 |
213 |
1 |
山奥の谷間で横笛を吹くパンダ「横笛パンダ」Tシャツ |
World Design Connect 公式ECサイト |
32 |
P |
0 |
216 |
1 |
山奥の谷間で横笛を吹くパンダ「横笛パンダ」Tシャツ |
World Design Connect 公式ECサイト |
32 |
P |
0 |
277 |
2 |
怪獣映画に出演中?「BEHIND THE SCENE.」パンダTシャツ |
World Design Connect 公式ECサイト |
49 |
P |
0 |
278 |
2 |
怪獣映画に出演中?「BEHIND THE SCENE.」パンダTシャツ |
World Design Connect 公式ECサイト |
49 |
V |
277 |