Query time 0.05381
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "37.93"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"grouping_operation": {
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "companies",
"access_type": "const",
"possible_keys": [
"PRIMARY",
"idx_status"
],
"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.10",
"prefix_cost": "0.00",
"data_read_per_join": "14K"
},
"used_columns": [
"company_id",
"status",
"company",
"city",
"state",
"ag_hide_city"
]
}
},
{
"table": {
"table_name": "products",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"age_verification",
"status",
"idx_company_id",
"idx_usergroup_ids",
"idx_amount",
"index_products_on_deleted_at"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 84,
"rows_produced_per_join": 0,
"filtered": "0.06",
"cost_info": {
"read_cost": "37.90",
"eval_cost": "0.01",
"prefix_cost": "37.90",
"data_read_per_join": "216"
},
"used_columns": [
"product_id",
"status",
"company_id",
"amount",
"usergroup_ids",
"tracking"
],
"attached_condition": "((`goimagine`.`products`.`company_id` = 2948) and ((`goimagine`.`products`.`amount` > 0) or (`goimagine`.`products`.`tracking` = 'D')) and (`goimagine`.`products`.`product_id` in (284648,282838,282836,278049,275782,272636,269248,266306,266156,265783,266092,265784,265689,258362,258086,252518,257589,256790,256001,252277,242304,241481,239493,237409,235920,234954,234076,231091,230522,227946,224968,226497,225207,225304,225273,204337,201932,201535,197488,196621,196622,201889,192454,193258,192450,108385,144425,174144,175093,167561,167552,161993,167239,166202,165403,165290,164900,164913,161865,164905,162133,164899,160627,156319,132617,139306,120811,139394,132610,139524,131992,127555,126324,126318,126321,108204,114844,120905,108233,120730,108232,120456,108246,108180)) and ((`goimagine`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`goimagine`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`goimagine`.`products`.`usergroup_ids`))) and (`goimagine`.`products`.`status` = 'A'))"
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"goimagine.products.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "15.00",
"cost_info": {
"read_cost": "0.02",
"eval_cost": "0.00",
"prefix_cost": "37.92",
"data_read_per_join": "0"
},
"used_columns": [
"id",
"product_id",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`goimagine`.`prices`.`lower_limit` = 1) and (`goimagine`.`prices`.`usergroup_id` in (0,0,1)))"
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "pt",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"goimagine.products.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.00",
"prefix_cost": "37.93",
"data_read_per_join": "0"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"table": {
"table_name": "categories",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"goimagine.products_categories.category_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "5.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.00",
"prefix_cost": "37.93",
"data_read_per_join": "1"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
],
"attached_condition": "(((`goimagine`.`categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`goimagine`.`categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`goimagine`.`categories`.`usergroup_ids`))) and (`goimagine`.`categories`.`status` in ('A','H')) and (`goimagine`.`categories`.`storefront_id` in (0,1)))"
}
},
{
"table": {
"table_name": "inventory",
"access_type": "ref",
"possible_keys": [
"pc"
],
"key": "pc",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"goimagine.products.product_id"
],
"rows_examined_per_scan": 3,
"rows_produced_per_join": 0,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.00",
"prefix_cost": "37.93",
"data_read_per_join": "2"
},
"used_columns": [
"product_id",
"combination_hash"
]
}
},
{
"table": {
"table_name": "descr1",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id",
"lang_code"
],
"key_length": "11",
"ref": [
"goimagine.products.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.00",
"prefix_cost": "37.93",
"data_read_per_join": "13"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
company_city_hide |
company_city |
company_state |
| 258086 |
16 oz. Glitter Snowglobe Tumblers |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 231091 |
17 oz. Resin Drinking Glass Set(s) |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 242304 |
20 oz. Aluminum Water Bottle |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 237409 |
20 oz. Curve Stainless Steel Resin Tumblers |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 252518 |
20 oz. Etched Stainless Steel Tumblers |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 256001 |
20 oz. Mason Jar Glitter Snowglobe Tumblers |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 239493 |
20 oz. Skinny Stainless Steel Tumblers |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 257589 |
20 oz. Stainless Steel Tumblers |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 252277 |
24 oz. Glitter Snowglobe Tumblers |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 256790 |
24 oz. Peek-a-boo Glitter Snowglobe Tumblers |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 108180 |
3D 2 Hands 2gether Jewelry / Candy Dish |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 164900 |
3D 2 Piece Heart Shaped Tealight Holder |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 127555 |
3D Angel Feathered Wings Dish |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 126321 |
3D Baby Pacifiers |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 108232 |
3D Believe Word Sign |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 108233 |
3D Blessed Word Sign |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 193258 |
3D Bookmarks |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 126318 |
3D Crystal Sunlight Edges Plate |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 175093 |
3D Decorative Daggers |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 201889 |
3D Decorative Flower Pins |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 204337 |
3D Decorative Hearts (various sizes) |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 132610 |
3D Diamond Edge Round Crystal Geode Coasters (Set 4) |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 164899 |
3D Diamond Tealight Holder |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 132617 |
3D Dog Paw Bottle Opener |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 165403 |
3D Dominos Double 6 Set |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 167239 |
3D Drinking Jenga-ish |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 120811 |
3D Feather Dish |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 120730 |
3D Fish Scale Design Bowl |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 108246 |
3D Floral Cross |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 197488 |
3D Flowers |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 225207 |
3D FreeForm Bubble Wrap Decorative Bowl |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 225304 |
3D FreeForm Color Swirl Decorative Bowl |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 225273 |
3D FreeForm Glitter Bomb Decorative Bowl |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 226497 |
3D Freeform Swirl Decorative Bowl |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 131992 |
3D Geode XL Tray |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 227946 |
3D Goddess Head Holder |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 108204 |
3D Home Word Sign |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 161865 |
3D Hugs & Kisses Keychain |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 120456 |
3D Knitted Baby Booties |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 196622 |
3D Large Egg (Customers Choice) |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 196621 |
3D Large Spheres (Customers Choice) |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 126324 |
3D Leaf Ashtray |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 164913 |
3D Live, Love, Laugh Sign |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 156319 |
3D Mini Lotus Flower Tealight Holder |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 144425 |
3D Mini Pendants (various shapes & sizes) |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 166202 |
3D Napkin Holder (4 Styles) |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 201932 |
3D Pyramid Earrings & Pendant Set |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 167552 |
3D Pyramid Ring Holders |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 224968 |
3D Rectangle Tray w/handles |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 164905 |
3D Ring Pendants |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 139524 |
3D Seashell Border Diamond Edge Round Crystal Geode Coaster |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 139394 |
3D Seashell Bubble Candle Holder |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 139306 |
3D Seashell Crystal Pendants (various shapes & sizes) |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 192450 |
3D Semicolon Keychains |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 108385 |
3D Stitched Rabbit |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 167561 |
3D Tealight Candle Holders |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 114844 |
3D Textured Angel Wings |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 160627 |
3D Valentines Day Keychains |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 165290 |
3D Various Shaped Pendants |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 192454 |
3D Wine/Bottle Stopper |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 162133 |
3D X Rated Keychains |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 235920 |
6 oz. Resin Stemless Wine Glassware Set(s) |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 266156 |
Adult Ink Gel Pens |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 265783 |
Adult Stainless Steel Customizable Pens (Limited Edition) |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 282836 |
Bangle Charm Bracelets |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 275782 |
Beaded Jewelry |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 282838 |
Charm Earrings |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 120905 |
Complete Full Diamond Art; Girl in Sunset |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 161993 |
Couples Valentines Mugs (2) |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 284648 |
Dangle Earrings |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 266092 |
Decorative Ink Gel Pens |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 269248 |
Decorative Metal Beaded Pens |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 265784 |
Decorative Stainless Steel Customizable Pens (Limited Edition) |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 278049 |
Kids Beaded Jewelry |
Fire Fly Lanez |
N |
East Elmhurst |
|
| 272636 |
Prayer Beads |
Fire Fly Lanez |
N |
East Elmhurst |
|