Query time 0.00111
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.32444968,
"filesort": {
"sort_key": "descr1.product, products.product_id",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "const",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["const"],
"rows": 1,
"filtered": 100
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["const"],
"loops": 1,
"rows": 51,
"cost": 0.01143129,
"filtered": 100,
"attached_condition": "products_categories.category_id <=> 475"
}
},
{
"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": 51,
"rows": 1,
"cost": 0.08739564,
"filtered": 100,
"attached_condition": "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": "companies",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["company_id"],
"ref": ["u985510652_ecartify.products.company_id"],
"loops": 51,
"rows": 1,
"cost": 0.04725484,
"filtered": 100,
"attached_condition": "companies.`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": [
"u985510652_ecartify.products_categories.product_id",
"const"
],
"loops": 51,
"rows": 1,
"cost": 0.08739564,
"filtered": 100,
"attached_condition": "trigcond(descr1.lang_code = 'ar')"
}
},
{
"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": ["u985510652_ecartify.products_categories.product_id"],
"loops": 51,
"rows": 1,
"cost": 0.09097227,
"filtered": 100,
"attached_condition": "prices.lower_limit = 1 and prices.usergroup_id in (0,0,1)"
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
| 312879 |
martivity Tetricks Magnetic Puzzle Game for Kids 4–8 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 |
| 312878 |
Puzzle Game, Sliding Game Set Funny Educational Tool Suitable for Most Age Brain Training Cognitive Development Team Building Problem Solving Leisure Activity Entertainment |
AutoZone |
P |
0 |
| 312836 |
Shivsoft 3x3 Axis Cube Puzzle – High-Speed Stickerless Twist Brain Teaser Cube for Kids & Adults | Magic Shape Mod Cube for IQ Development, Stress Relief & Mind Challenge |
AutoZone |
P |
0 |
| 312880 |
Smartivity Pixel Art - 40+ Brain Puzzles for Kids 4,5,6 Years Old | Build Creative Designs - Jelly Fish, Car, Boat, Umbrella, Flower etc. I Educational Toy, Birthday Gift for Boys & Girls 4-6 Years |
AutoZone |
P |
0 |
| 312865 |
SMARTOYS | Face Change Puzzle | Colorfull Wooden Cubes 16 Pcs | Toy for Kids 3+ Years (Face Puzzle Box) |
CS-Cart1 |
P |
0 |
| 312874 |
StonKraft Wooden Labyrinth Board Game Ball in a Maze Puzzle Toys - Indoor Puzzle Game for Young Adults (6 Inches) |
AutoZone |
P |
0 |
| 312868 |
Toys Treasure Combo of Round Column 3x3 & Pyramid High Speed Sticker Less Magic Puzzle Cube (2 Pieces) - The Ultimate Puzzle Set for Fun and Learning |
CS-Cart1 |
P |
0 |
| 312849 |
Toyshine 5x5 Speed Cube Stickerless Magic Puzzle Speedy Stress Buster Brainstorming Toy Puzzle for Kids & Adults |
CS-Cart1 |
P |
0 |
| 312850 |
VGRASSP 5x5x5 Stickerless Speed Cube - Ultra Smooth |
CS-Cart1 |
P |
0 |
| 312877 |
Wooden 5x5 Sliding Puzzle Game | 1 to 25 Number Puzzle for Kids 5+ Years & Adults | Brain Teaser Toy, Logical Thinking Puzzle Game, Educational & Travel-Friendly Toy |
AutoZone |
P |
0 |