Query time 0.00502
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "if(NULL is not null,NULL,descr1.product), products.product_id",
"temporary_table": {
"table": {
"table_name": "companies",
"access_type": "system",
"possible_keys": ["PRIMARY"],
"rows": 1,
"filtered": 100
},
"table": {
"table_name": "shared_descr",
"access_type": "system",
"possible_keys": ["PRIMARY", "product_id", "company_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": 83,
"filtered": 51.80722809,
"attached_condition": "cscart_categories.category_id in (166,165,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,199,185,186,187,188,189,190,191,194,193,195,196,197,198,200,201,202,234,235,236,237,238,240,254,255,263) 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') 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": ["c.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": ["c.products_categories.product_id"],
"rows": 1,
"filtered": 96.36938477,
"attached_condition": "products.parent_product_id = 0 and 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": "descr1",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "product_id"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["product_id", "lang_code"],
"ref": ["c.products_categories.product_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'tr')"
},
"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": ["c.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
}
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
| 154 |
JR900 Wireless Headphones |
CS-Cart |
P |
0 |
| 53 |
KFC-W3012 |
CS-Cart |
P |
0 |
| 52 |
KFC-W3013PS |
CS-Cart |
P |
0 |
| 228 |
LG D2342P-PN |
CS-Cart |
P |
0 |
| 161 |
MV800 16.1 Megapixel MultiView Compact Digital Camera |
CS-Cart |
P |
0 |
| 165 |
Nikon 1 J1 One-Lens Kit White |
CS-Cart |
P |
0 |
| 166 |
Nikon 1 J1 Two-Lens Wide Angle Kit Red |
CS-Cart |
P |
0 |
| 86 |
Nokia 700 |
CS-Cart |
P |
0 |
| 106 |
Nokia E5-00 |
CS-Cart |
P |
0 |
| 105 |
Nokia Lumia 800 |
CS-Cart |
P |
0 |
| 247 |
Nokia N1 Pad 7.9" Quad-Core 64bit 2.3GHz 2GB 32GB Android 5.0 |
CS-Cart |
P |
0 |
| 101 |
Nokia X3-02 |
CS-Cart |
P |
0 |
| 33 |
nüvi® 2455LT |
CS-Cart |
P |
0 |
| 32 |
nüvi® 3450 |
CS-Cart |
P |
0 |
| 163 |
NX200 20.3 Megapixel Compact System Camera |
CS-Cart |
P |
0 |
| 244 |
Packard Bell OneTwo |
CS-Cart |
P |
0 |
| 212 |
Panasonic KX-MB2000 24PPM 3-in-1 Monochrome Laser MFP |
CS-Cart |
P |
0 |
| 155 |
Porta Pro KTC On-Ear Headphone |
CS-Cart |
P |
0 |
| 55 |
PRS-D800 |
CS-Cart |
P |
0 |
| 69 |
Rhyme |
CS-Cart |
P |
0 |
| 206 |
RT-N66U Dual-Band Wireless-N900 Gigabit Router |
CS-Cart |
P |
0 |
| 184 |
Samsung 30mm NX Pancake Lens |
CS-Cart |
P |
0 |
| 183 |
Samsung 50-200mm NX Telephoto OIS Lens |
CS-Cart |
P |
0 |
| 133 |
Samsung Galaxy Player 4.0 |
CS-Cart |
P |
0 |
| 132 |
Samsung Galaxy Player 5.0 |
CS-Cart |
P |
0 |
| 125 |
Samsung Galaxy S II |
CS-Cart |
P |
0 |
| 120 |
Samsung Galaxy S II, Epic 4G Touch (Black) |
CS-Cart |
P |
0 |
| 223 |
Samsung Galaxy Tab 8.9 (Wi-Fi Only) - 32GB Metallic Gray |
CS-Cart |
P |
0 |
| 225 |
Samsung Galaxy Tab™ 7.0" (Verizon) |
CS-Cart |
P |
0 |
| 224 |
Samsung Galaxy Tab™ 8.9 (AT&T) |
CS-Cart |
P |
0 |
| 146 |
Sansa Clip+ MP3 Player (Blue) - 4GB |
CS-Cart |
P |
0 |
| 147 |
Sansa Clip+ MP3 Player (Red) - 4GB |
CS-Cart |
P |
0 |
| 145 |
Sansa Fuze+ MP3 Player (Red) - 4GB |
CS-Cart |
P |
0 |
| 117 |
SCH-I515 |
CS-Cart |
P |
0 |
| 219 |
Series 3 15.6" Laptop |
CS-Cart |
P |
0 |
| 222 |
Series 3 15.6" Laptop |
CS-Cart |
P |
0 |
| 220 |
Series 7 Chronos 14” Notebook |
CS-Cart |
P |
0 |
| 221 |
Series 9 13.3" Laptop |
CS-Cart |
P |
0 |
| 113 |
SGH-I677 |
CS-Cart |
P |
0 |
| 157 |
Studio Monitor Headphones |
CS-Cart |
P |
0 |
| 68 |
Titan |
CS-Cart |
P |
0 |
| 29 |
TomTom GO LIVE Top Gear edition |
CS-Cart |
P |
0 |
| 6 |
Toshiba 32C120U 32" Class 720P HD LCD TV |
CS-Cart |
P |
0 |
| 8 |
Toshiba 32TL515U 32" Class 1080P 3D LED HD TV |
CS-Cart |
P |
0 |
| 14 |
Toshiba 40E220U 40" Class 1080P HD LCD TV |
CS-Cart |
P |
0 |
| 9 |
Toshiba 42TL515U 42" Class 1080P 3D LED HD TV |
CS-Cart |
P |
0 |
| 10 |
Toshiba 47TL515U 47" Class 1080P 3D LED HD TV |
CS-Cart |
P |
0 |
| 19 |
Toshiba BDX2150 Blu-ray Player |
CS-Cart |
P |
0 |
| 21 |
Toshiba SD3300 DVD Player |
CS-Cart |
P |
0 |
| 50 |
TS-D1720C |
CS-Cart |
P |
0 |
| 51 |
TS-D6902R |
CS-Cart |
P |
0 |
| 49 |
TS-MR1640 |
CS-Cart |
P |
0 |
| 48 |
TS-MR2040 |
CS-Cart |
P |
0 |
| 54 |
TS-W3002D2|D4 |
CS-Cart |
P |
0 |
| 153 |
UR55 Full Size Headphones |
CS-Cart |
P |
0 |
| 164 |
WB210 10MB 14 Megapixel Slim Digital Camera (Red) |
CS-Cart |
P |
0 |
| 248 |
X-Box One |
CS-Cart |
P |
0 |
| 65 |
XRS 9370 |
CS-Cart |
P |
0 |
| 64 |
XRS 9745 |
CS-Cart |
P |
0 |
| 63 |
XRS 9770 |
CS-Cart |
P |
0 |
| 62 |
XRS 9945 |
CS-Cart |
P |
0 |
| 66 |
XRS 9970G |
CS-Cart |
P |
0 |
| 140 |
Yamaha PDX-11 DB |
CS-Cart |
P |
0 |
| 141 |
Yamaha PDX-11 GR |
CS-Cart |
P |
0 |