Query time 0.00085
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.254940432,
"filesort": {
"sort_key": "company_descr.i18n_company",
"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": 109,
"cost": 0.02255975,
"filtered": 100
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["u985510652_ecartify_dev.products_categories.product_id"],
"loops": 109,
"rows": 1,
"cost": 0.11879316,
"filtered": 27.74274826,
"attached_condition": "(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": "company_descr",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "10",
"used_key_parts": ["company_id", "lang_code"],
"ref": ["u985510652_ecartify_dev.products.company_id", "const"],
"loops": 30.23959647,
"rows": 1,
"cost": 0.027866705,
"filtered": 100,
"attached_condition": "trigcond(company_descr.lang_code = 'en')"
}
},
{
"table": {
"table_name": "companies",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["company_id"],
"ref": ["u985510652_ecartify_dev.products.company_id"],
"loops": 30.23959647,
"rows": 1,
"cost": 0.027866705,
"filtered": 100,
"attached_condition": "companies.`status` = 'A'"
}
},
{
"table": {
"table_name": "tags_links",
"access_type": "ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "6",
"used_key_parts": ["object_type", "object_id"],
"ref": [
"const",
"u985510652_ecartify_dev.products_categories.product_id"
],
"loops": 30.23959647,
"rows": 1,
"cost": 0.029987408,
"filtered": 100,
"attached_condition": "trigcond(tags_links.object_type = 'P')"
}
},
{
"table": {
"table_name": "tags",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["tag_id"],
"ref": ["u985510652_ecartify_dev.tags_links.tag_id"],
"loops": 30.23959647,
"rows": 1,
"cost": 0.027866705,
"filtered": 100,
"attached_condition": "trigcond(tags.`status` = 'A' or tags.tag_id is null) and trigcond(trigcond(tags_links.tag_id is not null))"
}
}
]
}
}
}
}
Result
| variant_id |
variant |
| 1 |
Store |