Query time 0.00063
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.022570724,
"filesort": {
"sort_key": "company_descr.i18n_company",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "master_products_storefront_offers_count",
"access_type": "system",
"possible_keys": ["PRIMARY", "idx_storefront_id"],
"rows": 0,
"filtered": 0,
"const_row_not_found": true
}
},
{
"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": 4,
"cost": 0.001343622,
"filtered": 100,
"using_index": true
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status", "idx_master_product_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["cscart.products_categories.product_id"],
"loops": 4,
"rows": 1,
"cost": 0.007120904,
"filtered": 99.01960754,
"attached_condition": "products.master_product_id = 0 and products.company_id in (1,39,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.master_product_status = 'A' and products.company_id > 0 and products.product_type <> 'D'"
}
},
{
"table": {
"table_name": "company_descr",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "10",
"used_key_parts": ["company_id", "lang_code"],
"ref": ["cscart.products.company_id", "const"],
"loops": 3.960784314,
"rows": 1,
"cost": 0.007053099,
"filtered": 100,
"attached_condition": "trigcond(company_descr.lang_code = 'de')"
}
},
{
"table": {
"table_name": "companies",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["company_id"],
"ref": ["cscart.products.company_id"],
"loops": 3.960784314,
"rows": 1,
"cost": 0.007053099,
"filtered": 100,
"attached_condition": "trigcond(companies.`status` = 'A' or products.company_id = 0)"
}
}
]
}
}
}
}
Result
variant_id |
variant |
1 |
E-Shop |