Query time 0.00038
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.072711164,
"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": "c_var",
"access_type": "ref",
"possible_keys": [
"variant_id",
"lang_code",
"product_id",
"idx_product_feature_variant_id"
],
"key": "variant_id",
"key_length": "3",
"used_key_parts": ["variant_id"],
"ref": ["const"],
"loops": 1,
"rows": 3,
"cost": 0.004492149,
"filtered": 54.22251892,
"attached_condition": "c_var.lang_code = 'de'"
}
},
{
"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.c_var.product_id"],
"loops": 1.626675603,
"rows": 1,
"cost": 0.003017364,
"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": 1.610727803,
"rows": 1,
"cost": 0.00298979,
"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": 1.610727803,
"rows": 1,
"cost": 0.00298979,
"filtered": 100,
"attached_condition": "trigcond(companies.`status` = 'A' or products.company_id = 0)"
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": ["PRIMARY", "pt"],
"key": "pt",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["cscart.c_var.product_id"],
"loops": 1.610727803,
"rows": 11,
"cost": 0.023041688,
"filtered": 100
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"ref": ["cscart.products_categories.category_id"],
"loops": 18.70922294,
"rows": 1,
"cost": 0.036180382,
"filtered": 100,
"attached_condition": "(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)"
}
}
]
}
}
}
}
Result
variant_id |
variant |
1 |
E-Shop |