Query time 0.00157
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 50.57077668,
"filesort": {
"sort_key": "descr1.product, products.product_id",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "companies",
"access_type": "const",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["company_id"],
"ref": ["const"],
"rows": 1,
"filtered": 100
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"loops": 1,
"rows": 3,
"cost": 0.00600749,
"filtered": 100,
"attached_condition": "cscart_categories.category_id in (460,461,475) 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": ["u985510652_ecartify.cscart_categories.category_id"],
"loops": 3,
"rows": 4107,
"cost": 2.02344291,
"filtered": 100
}
},
{
"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": ["u985510652_ecartify.products_categories.product_id"],
"loops": 12321,
"rows": 1,
"cost": 15.08526564,
"filtered": 100,
"attached_condition": "products.company_id = 5 and products.parent_product_id = 0 and (products.usergroup_ids = '' or find_in_set(0,products.usergroup_ids) or find_in_set(1,products.usergroup_ids)) and products.`status` = 'A' and products.product_type <> 'D'"
}
},
{
"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": [
"u985510652_ecartify.products_categories.product_id",
"const"
],
"loops": 12321,
"rows": 1,
"cost": 21.11375844,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'en')"
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["u985510652_ecartify.products_categories.product_id"],
"loops": 12321,
"rows": 1,
"cost": 12.3423022,
"filtered": 100,
"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 |
| 312845 |
Cubelelo Drift Pyraminx Puzzle Speedcube | Beginner Starter Cube for Kids 3+ Year Old & Above | Triangle Pyramid Shape Stickerless 3x3 Cubes Toy | Ideal for Boys Girls Children 4 5 6+ Years & Adults |
AutoZone |
P |
0 |
| 312837 |
Cubelelo Drift Windmill (Tiled) Magic Cube Puzzle | Unique Shape Mod with Premium Design, Smooth Finish Toy for Intermediate and Advanced Solvers | Suitable for Adults and Kids Ages 3 & Above |
AutoZone |
P |
0 |
| 312834 |
Cubelelo GAN 356 ME (v3-Frosted) 3x3 Magnetic Speed Cube | New Version | Premium Smooth Turning Puzzle for Speedcubing | Fast & Stable Competition-Ready Cube for Beginners & Professionals |
AutoZone |
P |
0 |
| 312844 |
D ETERNAL Pyraminx Pyramid 3X3X3 Triangle Cube 3X3 High Speed Stickerless Puzzle Cube Game Toy, Multicolor, Kids and Professionals |
AutoZone |
P |
0 |
| 312862 |
GOPIKRISHNA Shape Shifting Box, Extraordinary 3D Cube, Transforming Cubes Puzzle for Trainning The Brain |
AutoZone |
P |
0 |
| 312833 |
HAWKISTER 6+ Years Moyu Rs3M V5 2023 Maglev 3X3 Speed Cube With Robot-Shape Display Box, Professional 3X3X3 Puzzle Cube Stickerless Rs3M V5 Maglev Cube (Maglev Version) |
AutoZone |
P |
0 |
| 312835 |
HAWKISTER 6+ Years Moyu Rs3M V5 2023 Maglev 3X3 Speed Cube With Robot-Shape Display Box, Professional 3X3X3 Puzzle Cube Stickerless Rs3M V5 Maglev Cube (Maglev Version) |
AutoZone |
P |
0 |
| 312859 |
HAWKISTER Moyu Mfjs Meilong 3M 3X3 Cube (Magnetic) Stickerless, 3X3X3 M Speed Cube, Kid |
AutoZone |
P |
0 |
| 312860 |
HAWKISTER Qiyi Warrior S Cube 3X3 Stickerless Professional Speed Magic Cube Puzzle, For Kid |
AutoZone |
P |
0 |
| 312861 |
HAWKISTER Sengso Lustrous Light-Up 3x3 Speed Cube (Magnetic), 6+ Years |
AutoZone |
P |
0 |
| 312879 |
martivity Tetricks Magnetic Puzzle Game for Kids 48 Years | 30 Brain Teaser Challenges with 6 Magnetic Shapes | Travel-Friendly, Educational Toy for Logic, Spatial Thinking & Problem-Solving Skills |
AutoZone |
P |
0 |
| 312875 |
Mini Wooden Labyrinth Ball Maze Puzzle Game Handcrafted Brain Teaser Toy for Kids & Adults | Balance Board Wire Puzzle | Travel-Friendly Wooden Mind Game Gift |
AutoZone |
P |
0 |