Query time 0.00388
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "44.86"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "companies",
"access_type": "const",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"company_id"
],
"key_length": "4",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.20",
"prefix_cost": "0.00",
"data_read_per_join": "6K"
},
"used_columns": [
"company_id",
"status",
"company"
]
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "ALL",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"rows_examined_per_scan": 84,
"rows_produced_per_join": 3,
"filtered": "4.00",
"cost_info": {
"read_cost": "19.61",
"eval_cost": "0.67",
"prefix_cost": "20.28",
"data_read_per_join": "8K"
},
"used_columns": [
"category_id",
"storefront_id",
"usergroup_ids",
"status"
],
"attached_condition": "(((`atulecarter_atul_demo2`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`atulecarter_atul_demo2`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`atulecarter_atul_demo2`.`cscart_categories`.`usergroup_ids`)) and (`atulecarter_atul_demo2`.`cscart_categories`.`status` in ('A','H')) and (`atulecarter_atul_demo2`.`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": [
"atulecarter_atul_demo2.cscart_categories.category_id"
],
"rows_examined_per_scan": 4,
"rows_produced_per_join": 13,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "3.67",
"eval_cost": "2.69",
"prefix_cost": "26.64",
"data_read_per_join": "215"
},
"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": [
"atulecarter_atul_demo2.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "5.00",
"cost_info": {
"read_cost": "13.44",
"eval_cost": "0.13",
"prefix_cost": "42.77",
"data_read_per_join": "2K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"usergroup_ids",
"parent_product_id"
],
"attached_condition": "((`atulecarter_atul_demo2`.`products`.`parent_product_id` = 0) and (`atulecarter_atul_demo2`.`products`.`company_id` = 1) and ((`atulecarter_atul_demo2`.`products`.`usergroup_ids` = '') or find_in_set(0,`atulecarter_atul_demo2`.`products`.`usergroup_ids`) or find_in_set(1,`atulecarter_atul_demo2`.`products`.`usergroup_ids`)) and (`atulecarter_atul_demo2`.`products`.`status` = 'A') and (`atulecarter_atul_demo2`.`products`.`product_type` <> 'D'))"
}
},
{
"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": [
"atulecarter_atul_demo2.products_categories.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.67",
"eval_cost": "0.13",
"prefix_cost": "43.57",
"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": [
"atulecarter_atul_demo2.products_categories.product_id"
],
"rows_examined_per_scan": 4,
"rows_produced_per_join": 2,
"filtered": "98.24",
"using_index": true,
"cost_info": {
"read_cost": "0.74",
"eval_cost": "0.53",
"prefix_cost": "44.86",
"data_read_per_join": "63"
},
"used_columns": [
"product_id",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`atulecarter_atul_demo2`.`prices`.`lower_limit` = 1) and (`atulecarter_atul_demo2`.`prices`.`usergroup_id` in (0,0,1)))"
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
| 187 |
2010 TOUR STAFF Bag 10" |
CS-Cart test |
P |
0 |
| 321 |
2010 TOUR STAFF Bag 10" |
CS-Cart test |
P |
0 |
| 323 |
2010 TOUR STAFF Bag 10" |
CS-Cart test |
P |
0 |
| 326 |
2010 TOUR STAFF Bag 10" |
CS-Cart test |
P |
0 |
| 329 |
2010 TOUR STAFF Bag 10" |
CS-Cart test |
P |
0 |
| 332 |
2010 TOUR STAFF Bag 10" |
CS-Cart test |
P |
0 |
| 16 |
3D Blu-ray Disc™ Player (BD-D7500) |
CS-Cart test |
P |
0 |
| 5 |
46" Class (45.9" Diag.) LCD 610 Series TV |
CS-Cart test |
P |
0 |
| 24 |
5.1 Channel Blu-ray 3D Home Theater System |
CS-Cart test |
P |
0 |
| 170 |
588 Chrome Wedge |
CS-Cart test |
P |
0 |
| 1 |
65" Class (64.5" Diag.) LED 8000 Series Smart TV |
CS-Cart test |
P |
0 |
| 22 |
7.1 Channel Blu-ray 3D Home Theater System |
CS-Cart test |
P |
0 |
| 149 |
8GB E Series Walkman Video MP3 |
CS-Cart test |
P |
0 |
| 227 |
Acer 3D Series HN274H bmiiid |
CS-Cart test |
P |
0 |
| 78 |
adizero Rush Shoes |
CS-Cart test |
P |
0 |
| 79 |
adiZero Tempaia Shoes |
CS-Cart test |
P |
0 |
| 190 |
AF-S DX NIKKOR 10-24mm f/3.5-4.5G ED |
CS-Cart test |
P |
0 |
| 189 |
AF-S NIKKOR 14-24mm f/2.8G ED |
CS-Cart test |
P |
0 |
| 162 |
AIKO SAFE Model AS 180 Office Safe with one shelve & one drawer |
CS-Cart test |
P |
0 |
| 159 |
AIKO SAFE Model AS 53 Home Safe, Horizontal Model with one tray |
CS-Cart test |
P |
0 |
| 158 |
AIKO SAFE Model Economy (AS 30) Home Safe, with single key |
CS-Cart test |
P |
0 |
| 245 |
Apple - iPhone 5c 32GB Cell Phone - Green |
CS-Cart test |
P |
0 |
| 238 |
Apple iPhone 4S Black |
CS-Cart test |
P |
0 |
| 239 |
Apple iPhone 4S White |
CS-Cart test |
P |
0 |
| 242 |
Apple iPod Classic Black |
CS-Cart test |
P |
0 |
| 243 |
Apple iPod Classic White |
CS-Cart test |
P |
0 |
| 240 |
Apple® - iPad® with Retina® display Wi-Fi - 64GB - Black |
CS-Cart test |
P |
0 |
| 214 |
ASUS CP6130 |
CS-Cart test |
P |
0 |
| 217 |
ASUS CP6230 |
CS-Cart test |
P |
0 |
| 218 |
ASUS Essentio CP1130 |
CS-Cart test |
P |
0 |
| 207 |
Asus USB-N53 |
CS-Cart test |
P |
0 |
| 59 |
AVH-P4400BH |
CS-Cart test |
P |
0 |
| 58 |
AVH-P8400BH |
CS-Cart test |
P |
0 |
| 60 |
AVIC-Z130BT |
CS-Cart test |
P |
0 |
| 199 |
B.B. King - Original Greatest Hits CD |
CS-Cart test |
P |
0 |
| 198 |
B.B. King One Kind Favor CD Grammy Award Winning CD Manufacturer: Geffen Records Sku: BBK-11ONEKINDFAVORCD Reviewed 2 times |
CS-Cart test |
P |
0 |
| 94 |
Batman: Arkham City (X360) |
CS-Cart test |
P |
0 |
| 96 |
Batman: Arkham City (X360) CE |
CS-Cart test |
P |
0 |
| 201 |
Beethoven Piano Concertos Nos. 1 & 2 |
CS-Cart test |
P |
0 |
| 114 |
Birds of Prey: The Complete Series (DVD) |
CS-Cart test |
P |
0 |
| 192 |
Black and White America (CD Pack) |
CS-Cart test |
P |
0 |
| 136 |
BlazBlue: Continuum Shift EXTEND |
CS-Cart test |
P |
0 |
| 130 |
Casio DR-210TM |
CS-Cart test |
P |
0 |
| 128 |
Casio FX-115ES |
CS-Cart test |
P |
0 |
| 126 |
Casio PRIZM fx-CG10 |
CS-Cart test |
P |
0 |
| 131 |
Catania |
CS-Cart test |
P |
0 |
| 177 |
CG BLACK DRIVER |
CS-Cart test |
P |
0 |
| 186 |
CG Black Staff Bag |
CS-Cart test |
P |
0 |
| 185 |
CG Lightweight Cart Bag |
CS-Cart test |
P |
0 |
| 179 |
CG16 Black Pearl Wedge |
CS-Cart test |
P |
0 |
| 11 |
Collegiate 72 Tee |
CS-Cart test |
P |
0 |
| 172 |
Compact Full HD Camcorder |
CS-Cart test |
P |
0 |
| 134 |
Creative ZEN Style M300 MP3 Player 16GB (Black) |
CS-Cart test |
P |
0 |
| 135 |
Creative ZEN Touch 2 MP3 Player 8GB (Black) |
CS-Cart test |
P |
0 |
| 195 |
Crossroads Guitar Festival 2010 (2DVD) |
CS-Cart test |
P |
0 |
| 233 |
Crystal Lake Warm Weather Sleeping Bag |
CS-Cart test |
P |
0 |
| 168 |
D300S (Body Only) |
CS-Cart test |
P |
0 |
| 167 |
D3100 + 18-55 VR Lens Kit |
CS-Cart test |
P |
0 |
| 169 |
D5100 + AF-S DX NIKKOR 18-55mm f/3.5-5.6G VR Lens Kit |
CS-Cart test |
P |
0 |
| 42 |
DEH-1300MP |
CS-Cart test |
P |
0 |
| 39 |
DEH-80PRS |
CS-Cart test |
P |
0 |
| 40 |
DEH-P8400BH |
CS-Cart test |
P |
0 |
| 287 |
Deluxe room with Two Queen Beds |
CS-Cart test |
P |
0 |
| 205 |
DIR-657 HD Media Router 1000 |
CS-Cart test |
P |
0 |
| 37 |
DPX308U |
CS-Cart test |
P |
0 |
| 152 |
Drifter 2 |
CS-Cart test |
P |
0 |
| 160 |
Drifter 3 |
CS-Cart test |
P |
0 |
| 74 |
Droid 3 |
CS-Cart test |
P |
0 |
| 73 |
DROID BIONIC |
CS-Cart test |
P |
0 |
| 71 |
DROID INCREDIBLE 2 |
CS-Cart test |
P |
0 |
| 75 |
DROID PRO |
CS-Cart test |
P |
0 |
| 72 |
DROID RAZR |
CS-Cart test |
P |
0 |
| 108 |
Due Date (Blu-ray) |
CS-Cart test |
P |
0 |
| 237 |
Elite Evanston 8 Tent |
CS-Cart test |
P |
0 |
| 191 |
Esperanza Spalding - Radio Music Society |
CS-Cart test |
P |
0 |
| 235 |
Everglades Cold Weather Sleeping Bag |
CS-Cart test |
P |
0 |
| 70 |
EVO Design 4G |
CS-Cart test |
P |
0 |
| 122 |
Evolution SST.2 XO Complete Bike 10SPD12 |
CS-Cart test |
P |
0 |
| 115 |
Evolve SST.2 X9 Complete Bike 10SPD '12 |
CS-Cart test |
P |
0 |
| 156 |
Extra Bass Headphones – 70mm |
CS-Cart test |
P |
0 |
| 90 |
F.E.A.R. 3 (PS3) MX |
CS-Cart test |
P |
0 |
| 175 |
F50 Flash Memory 52x Zoom Camcorder (Silver) |
CS-Cart test |
P |
0 |
| 196 |
Feeding the Monkies At Ma Maison (Zappa) |
CS-Cart test |
P |
0 |
| 43 |
FH-P8000BT |
CS-Cart test |
P |
0 |
| 104 |
Final Destination 5 (Blu-ray) |
CS-Cart test |
P |
0 |
| 76 |
FLIPSIDE with MOTOBLUR |
CS-Cart test |
P |
0 |
| 129 |
Fore CR1 |
CS-Cart test |
P |
0 |
| 127 |
Fore CR5 SRAM Red |
CS-Cart test |
P |
0 |
| 121 |
Fringe: The Complete Third Season |
CS-Cart test |
P |
0 |
| 103 |
Fringe: The Complete Third Season (Blu-Ray) |
CS-Cart test |
P |
0 |
| 95 |
Game Party: In Motion (X360) |
CS-Cart test |
P |
0 |
| 182 |
GBC® Smart-View® 3-Ring Report Cover |
CS-Cart test |
P |
0 |
| 41 |
Gift Set (Onesie Plus Socks) |
CS-Cart test |
P |
0 |
| 56 |
GM-6500F |
CS-Cart test |
P |
0 |
| 57 |
GM-D8500M |
CS-Cart test |
P |
0 |
| 30 |
GO 2535 TM WTE |
CS-Cart test |
P |
0 |
| 112 |
Gone with The Wind: 2-Disc Special Edition |
CS-Cart test |
P |
0 |
| 246 |
GoPro - Hero3+ Black Edition Camera |
CS-Cart test |
P |
0 |
| 89 |
Green Lantern: Rise of the Manhunters (PS3) |
CS-Cart test |
P |
0 |
| 197 |
Guitar Man Album Artwork |
CS-Cart test |
P |
0 |
| 208 |
H.264 Megapixel Surveillance Camera TL-SC3430 |
CS-Cart test |
P |
0 |
| 173 |
H300 Long Zoom Compact Full HD Camcorder (Black) |
CS-Cart test |
P |
0 |
| 97 |
Harry Potter and the Deathly Hallows - Part 2 (Blu-ray+DVD+UltraViolet Digital Copy Combo Pack) |
CS-Cart test |
P |
0 |
| 229 |
HP 2711x 27" LED Monitor |
CS-Cart test |
P |
0 |
| 211 |
HP Officejet Pro 8600 Premium e-All-in-One Printer |
CS-Cart test |
P |
0 |
| 210 |
HP Photosmart Plus e-All-in-One Printer - B210a |
CS-Cart test |
P |
0 |
| 209 |
HP Scanjet G3110 Scanner |
CS-Cart test |
P |
0 |
| 67 |
HTC Wildfire S - White (T-Mobile) |
CS-Cart test |
P |
0 |
| 25 |
HW-D7000 AV Receiver with built-in Blu-ray Disc® Player |
CS-Cart test |
P |
0 |
| 116 |
I Am Legend (DVD) (WS) |
CS-Cart test |
P |
0 |
| 213 |
Intel® Boxed Intel® Core™ i7-2600 |
CS-Cart test |
P |
0 |
| 215 |
Intel® Core™ i7 processor Extreme Edition 980X – i7-980X |
CS-Cart test |
P |
0 |
| 226 |
Intel® Core™ i7 Processor i7-950 |
CS-Cart test |
P |
0 |
| 200 |
John Rutter - The Colours of Christmas |
CS-Cart test |
P |
0 |
| 154 |
JR900 Wireless Headphones |
CS-Cart test |
P |
0 |
| 53 |
KFC-W3012 |
CS-Cart test |
P |
0 |
| 52 |
KFC-W3013PS |
CS-Cart test |
P |
0 |
| 111 |
Last Samurai, The (DVD) (WS) |
CS-Cart test |
P |
0 |
| 82 |
Legend of the Guardians: the Owls of Ga'hoole(VG) |
CS-Cart test |
P |
0 |
| 84 |
Lego Batman (Wii) |
CS-Cart test |
P |
0 |
| 228 |
LG D2342P-PN |
CS-Cart test |
P |
0 |
| 85 |
Looney Tunes: Acme Arsenal (Wii) |
CS-Cart test |
P |
0 |
| 88 |
Lord of the Rings: War in the North(PS3) |
CS-Cart test |
P |
0 |
| 26 |
Mac OS X Lion: The Missing Manual |
CS-Cart test |
P |
0 |
| 35 |
Managing Enterprise Content: A Unified Content Strategy, 2nd Edition |
CS-Cart test |
P |
0 |
| 47 |
MARVEL® VS. CAPCOM® 3: FATE OF TWO WORLDS SPECIAL EDITION (PS3) |
CS-Cart test |
P |
0 |
| 81 |
Minnetonka Original Cowhide Driving Moc |
CS-Cart test |
P |
0 |
| 107 |
Montblanc Classic Collection Money Clip |
CS-Cart test |
P |
0 |