Query time 0.00108
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.12051016,
"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": "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": 22,
"cost": 0.00586706,
"filtered": 100,
"attached_condition": "products_categories.category_id <=> 461"
}
},
{
"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": 22,
"rows": 1,
"cost": 0.03770008,
"filtered": 100,
"attached_condition": "products.company_id = 1 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": 22,
"rows": 1,
"cost": 0.03770008,
"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": "usergroup",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["u985510652_ecartify.products_categories.product_id"],
"loops": 22,
"rows": 1,
"cost": 0.03924294,
"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 |
| 312456 |
Amisha Gift Gallery Battery Operated Toy Train Set for Kids 3–7 Years | Indian Passenger Metal Type Train with 203 cm Railway Track | LED Engine | Toy Train for Boys & Girls |
CS-Cart |
P |
0 |
| 312443 |
Branded Take Apart Dinosaur Toys, Pack of 3 Dinosaurs with Screwdrivers, Dino Kids Building Learning Toys, STEM Toy for Boys and Girls, 3 4 5 6 7 8 Year Old Boys and Girls |
CS-Cart |
P |
0 |
| 312448 |
Galaxy Hi-Tech Magnetic Tiles for Kids Magnetic Building Blocks for Kids 3 4 5 6 7 8 Yrs Constructing & Creative Learning Educational Brain Toys STEM Learning Kit Magnetic Toys (26 Pcs) |
CS-Cart |
P |
0 |
| 312451 |
Jack Royal Battery Operated Tomas Toy Train Track Set with Sound and Flashing Lights Train with Coal Wagon, Tanker |
CS-Cart |
P |
0 |
| 312444 |
Kiditos Electric Powered Train Track Set Motorized Engine DIY Self-Assemble Multi-Level Track Builder Set (35 Pcs) with Realistic Sound & Flashing Lights for Kids Boys & Girls Ages 3+ Years |
CS-Cart |
P |
0 |
| 312455 |
Lifelong Trike Cycle for Kids Cycle 2-5 Y - Tricycles for Boy & Girl - Bike with 3 EVA Wheels, Bell & Basket -Durable Tricycle with Parental Control 30Kg Capacity (Blue & Grey) |
CS-Cart |
P |
0 |
| 312449 |
Magnetic Blocks - Build Magnet World Magic Portal Set, Magnetic Tiles Building Blocks Toddler Toys STEM Sensory Outdoor Toys (Color Theme, 42, Piece) |
CS-Cart |
P |
0 |
| 312460 |
NESTA TOYS - Floor Puzzle & Game | 4 in 1 Jigsaw Puzzle | Emergency Vehicles (9 Pcs,12 Pcs, 16 Pcs, 20 Pcs) | Educational Toy, Gifts for Boys & Girls Ages 2, 3, 4, 5, 6 Years | Car Toys for Kids |
CS-Cart |
P |
0 |
| 461271 |
New Sg-Product for zoho vendor |
CS-Cart |
P |
0 |
| 461010 |
Performance - suggest performance related addon: |
CS-Cart |
P |
0 |
| 461009 |
SEO - suggest seo related addon |
CS-Cart |
P |
0 |
| 312446 |
Snaptron 180 Pieces Construction Car Track Set Toys with Battery Operated Car, Create Your Own Engineering Race Track Toys for Kids, Train Track Set for Kids, Toys for 3+ Year Old Boys & Girls |
CS-Cart |
P |
0 |