Query time 0.00087
JSON explain
{
"query_block": {
"select_id": 1,
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "shared_descr",
"access_type": "system",
"possible_keys": [
"PRIMARY",
"product_id",
"company_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",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows": 1,
"filtered": 100
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows": 1,
"filtered": 100,
"using_index": true
}
},
{
"table": {
"table_name": "products",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"status",
"idx_parent_product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"_testcscart.products_categories.product_id"
],
"rows": 1,
"filtered": 100,
"attached_condition": "((`_testcscart`.`products`.`parent_product_id` = 0) and ((`_testcscart`.`products`.`usergroup_ids` = '') or find_in_set(0,`_testcscart`.`products`.`usergroup_ids`) or find_in_set(1,`_testcscart`.`products`.`usergroup_ids`)) and (`_testcscart`.`products`.`status` = 'A'))"
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "usergroup",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"_testcscart.products_categories.product_id"
],
"rows": 1,
"filtered": 100,
"using_index": true,
"attached_condition": "((`_testcscart`.`prices`.`lower_limit` = 1) and (`_testcscart`.`prices`.`usergroup_id` in (0,0,1)))"
}
},
{
"table": {
"table_name": "descr1",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id",
"lang_code"
],
"key_length": "9",
"ref": [
"_testcscart.products_categories.product_id",
"const"
],
"rows": 1,
"filtered": 100,
"attached_condition": "<if>(is_not_null_compl(descr1), (`_testcscart`.`descr1`.`lang_code` = 'ja'), true)"
}
}
]
}
}
}
}