Query time 0.00484
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "57.86"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "companies",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 2,
"rows_produced_per_join": 1,
"filtered": "50.00",
"cost_info": {
"read_cost": "2.28",
"eval_cost": "0.20",
"prefix_cost": "2.48",
"data_read_per_join": "5K"
},
"used_columns": [
"company_id",
"status",
"company"
],
"attached_condition": "(`rajansecarter_single_store_19_jan`.`companies`.`status` = 'A')"
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "ALL",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"rows_examined_per_scan": 166,
"rows_produced_per_join": 1,
"filtered": "1.04",
"using_join_buffer": "Block Nested Loop",
"cost_info": {
"read_cost": "37.93",
"eval_cost": "0.34",
"prefix_cost": "40.75",
"data_read_per_join": "4K"
},
"used_columns": [
"category_id",
"storefront_id",
"usergroup_ids",
"status"
],
"attached_condition": "((`rajansecarter_single_store_19_jan`.`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 ((`rajansecarter_single_store_19_jan`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`rajansecarter_single_store_19_jan`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`rajansecarter_single_store_19_jan`.`cscart_categories`.`usergroup_ids`)) and (`rajansecarter_single_store_19_jan`.`cscart_categories`.`status` in ('A','H')) and (`rajansecarter_single_store_19_jan`.`cscart_categories`.`storefront_id` in (0,1)))"
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"rajansecarter_single_store_19_jan.cscart_categories.category_id"
],
"rows_examined_per_scan": 5,
"rows_produced_per_join": 8,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "1.91",
"eval_cost": "1.72",
"prefix_cost": "44.38",
"data_read_per_join": "137"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"status",
"idx_parent_product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"rajansecarter_single_store_19_jan.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "9.56",
"cost_info": {
"read_cost": "8.60",
"eval_cost": "0.16",
"prefix_cost": "54.70",
"data_read_per_join": "3K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"usergroup_ids",
"parent_product_id"
],
"attached_condition": "((`rajansecarter_single_store_19_jan`.`products`.`company_id` = `rajansecarter_single_store_19_jan`.`companies`.`company_id`) and (`rajansecarter_single_store_19_jan`.`products`.`parent_product_id` = 0) and ((`rajansecarter_single_store_19_jan`.`products`.`usergroup_ids` = '') or find_in_set(0,`rajansecarter_single_store_19_jan`.`products`.`usergroup_ids`) or find_in_set(1,`rajansecarter_single_store_19_jan`.`products`.`usergroup_ids`)) and (`rajansecarter_single_store_19_jan`.`products`.`status` = 'A'))"
}
},
{
"table": {
"table_name": "shared_descr",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"product_id",
"company_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id",
"lang_code",
"company_id"
],
"key_length": "13",
"ref": [
"rajansecarter_single_store_19_jan.products_categories.product_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.82",
"eval_cost": "0.16",
"prefix_cost": "55.68",
"data_read_per_join": "3K"
},
"used_columns": [
"product_id",
"lang_code",
"company_id",
"product"
]
}
},
{
"table": {
"table_name": "descr1",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id",
"lang_code"
],
"key_length": "9",
"ref": [
"rajansecarter_single_store_19_jan.products_categories.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.82",
"eval_cost": "0.16",
"prefix_cost": "56.67",
"data_read_per_join": "3K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "usergroup",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"rajansecarter_single_store_19_jan.products_categories.product_id"
],
"rows_examined_per_scan": 2,
"rows_produced_per_join": 1,
"filtered": "96.85",
"using_index": true,
"cost_info": {
"read_cost": "0.86",
"eval_cost": "0.32",
"prefix_cost": "57.86",
"data_read_per_join": "38"
},
"used_columns": [
"product_id",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`rajansecarter_single_store_19_jan`.`prices`.`lower_limit` = 1) and (`rajansecarter_single_store_19_jan`.`prices`.`usergroup_id` in (0,0,1)))"
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
| 148 |
16GB A Series Walkman Video MP3 |
CS-Cart |
P |
0 |
| 180 |
18-55mm Portrait Lens |
CS-Cart |
P |
0 |
| 18 |
3D Blu-ray Disc™ Player (BD-D7000) |
CS-Cart |
P |
0 |
| 16 |
3D Blu-ray Disc™ Player (BD-D7500) |
CS-Cart |
P |
0 |
| 4 |
40" Class (40.0" Diag.) LED 5003 Series TV |
CS-Cart |
P |
0 |
| 5 |
46" Class (45.9" Diag.) LCD 610 Series TV |
CS-Cart |
P |
0 |
| 23 |
5.1 Channel Blu-ray 3D Home Theater System |
CS-Cart |
P |
0 |
| 24 |
5.1 Channel Blu-ray 3D Home Theater System |
CS-Cart |
P |
0 |
| 1 |
65" Class (64.5" Diag.) LED 8000 Series Smart TV |
CS-Cart |
P |
0 |
| 22 |
7.1 Channel Blu-ray 3D Home Theater System |
CS-Cart |
P |
0 |
| 149 |
8GB E Series Walkman Video MP3 |
CS-Cart |
P |
0 |
| 227 |
Acer 3D Series HN274H bmiiid |
CS-Cart |
P |
0 |
| 190 |
AF-S DX NIKKOR 10-24mm f/3.5-4.5G ED |
CS-Cart |
P |
0 |
| 189 |
AF-S NIKKOR 14-24mm f/2.8G ED |
CS-Cart |
P |
0 |
| 245 |
Apple - iPhone 5c 32GB Cell Phone - Green |
CS-Cart |
P |
0 |
| 238 |
Apple iPhone 4S Black |
CS-Cart |
P |
0 |
| 239 |
Apple iPhone 4S White |
CS-Cart |
P |
0 |
| 242 |
Apple iPod Classic Black |
CS-Cart |
P |
0 |
| 243 |
Apple iPod Classic White |
CS-Cart |
P |
0 |
| 241 |
Apple® - iPad® with Retina® display Wi-Fi - 32GB - White |
CS-Cart |
P |
0 |
| 240 |
Apple® - iPad® with Retina® display Wi-Fi - 64GB - Black |
CS-Cart |
P |
0 |
| 214 |
ASUS CP6130 |
CS-Cart |
P |
0 |
| 217 |
ASUS CP6230 |
CS-Cart |
P |
0 |
| 218 |
ASUS Essentio CP1130 |
CS-Cart |
P |
0 |
| 207 |
Asus USB-N53 |
CS-Cart |
P |
0 |
| 59 |
AVH-P4400BH |
CS-Cart |
P |
0 |
| 58 |
AVH-P8400BH |
CS-Cart |
P |
0 |
| 60 |
AVIC-Z130BT |
CS-Cart |
P |
0 |
| 172 |
Compact Full HD Camcorder |
CS-Cart |
P |
0 |
| 134 |
Creative ZEN Style M300 MP3 Player 16GB (Black) |
CS-Cart |
P |
0 |
| 135 |
Creative ZEN Touch 2 MP3 Player 8GB (Black) |
CS-Cart |
P |
0 |
| 168 |
D300S (Body Only) |
CS-Cart |
P |
0 |
| 167 |
D3100 + 18-55 VR Lens Kit |
CS-Cart |
P |
0 |
| 169 |
D5100 + AF-S DX NIKKOR 18-55mm f/3.5-5.6G VR Lens Kit |
CS-Cart |
P |
0 |
| 42 |
DEH-1300MP |
CS-Cart |
P |
0 |
| 39 |
DEH-80PRS |
CS-Cart |
P |
0 |
| 40 |
DEH-P8400BH |
CS-Cart |
P |
0 |
| 205 |
DIR-657 HD Media Router 1000 |
CS-Cart |
P |
0 |
| 37 |
DPX308U |
CS-Cart |
P |
0 |
| 74 |
Droid 3 |
CS-Cart |
P |
0 |
| 73 |
DROID BIONIC |
CS-Cart |
P |
0 |
| 71 |
DROID INCREDIBLE 2 |
CS-Cart |
P |
0 |
| 75 |
DROID PRO |
CS-Cart |
P |
0 |
| 72 |
DROID RAZR |
CS-Cart |
P |
0 |
| 70 |
EVO Design 4G |
CS-Cart |
P |
0 |
| 156 |
Extra Bass Headphones – 70mm |
CS-Cart |
P |
0 |
| 175 |
F50 Flash Memory 52x Zoom Camcorder (Silver) |
CS-Cart |
P |
0 |
| 43 |
FH-P8000BT |
CS-Cart |
P |
0 |
| 76 |
FLIPSIDE with MOTOBLUR |
CS-Cart |
P |
0 |
| 56 |
GM-6500F |
CS-Cart |
P |
0 |
| 57 |
GM-D8500M |
CS-Cart |
P |
0 |
| 30 |
GO 2535 TM WTE |
CS-Cart |
P |
0 |
| 246 |
GoPro - Hero3+ Black Edition Camera |
CS-Cart |
P |
0 |
| 208 |
H.264 Megapixel Surveillance Camera TL-SC3430 |
CS-Cart |
P |
0 |
| 173 |
H300 Long Zoom Compact Full HD Camcorder (Black) |
CS-Cart |
P |
0 |
| 229 |
HP 2711x 27" LED Monitor |
CS-Cart |
P |
0 |
| 211 |
HP Officejet Pro 8600 Premium e-All-in-One Printer |
CS-Cart |
P |
0 |
| 210 |
HP Photosmart Plus e-All-in-One Printer - B210a |
CS-Cart |
P |
0 |
| 209 |
HP Scanjet G3110 Scanner |
CS-Cart |
P |
0 |
| 67 |
HTC Wildfire S - White (T-Mobile) |
CS-Cart |
P |
0 |
| 25 |
HW-D7000 AV Receiver with built-in Blu-ray Disc® Player |
CS-Cart |
P |
0 |
| 213 |
Intel® Boxed Intel® Core™ i7-2600 |
CS-Cart |
P |
0 |
| 215 |
Intel® Core™ i7 processor Extreme Edition 980X – i7-980X |
CS-Cart |
P |
0 |
| 226 |
Intel® Core™ i7 Processor i7-950 |
CS-Cart |
P |
0 |