Query time 0.00203
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "2.74"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "products",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"status",
"idx_parent_product_id"
],
"key": "status",
"used_key_parts": [
"status"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "50.00",
"index_condition": "(`marketpl_db`.`products`.`status` <=> 'A')",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.10",
"prefix_cost": "1.20",
"data_read_per_join": "2K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"list_price",
"usergroup_ids",
"parent_product_id"
],
"attached_condition": "((`marketpl_db`.`products`.`parent_product_id` = 0) and ((`marketpl_db`.`products`.`usergroup_ids` = '') or find_in_set(0,`marketpl_db`.`products`.`usergroup_ids`) or find_in_set(1,`marketpl_db`.`products`.`usergroup_ids`)) and (`marketpl_db`.`products`.`product_type` <> 'D'))"
}
},
{
"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": [
"marketpl_db.products.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "50.00",
"index_condition": "((`marketpl_db`.`prices`.`lower_limit` = 1) and (`marketpl_db`.`prices`.`usergroup_id` in (0,0,1)))",
"cost_info": {
"read_cost": "0.50",
"eval_cost": "0.05",
"prefix_cost": "1.80",
"data_read_per_join": "6"
},
"used_columns": [
"product_id",
"price",
"lower_limit",
"usergroup_id"
]
}
},
{
"table": {
"table_name": "products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "pt",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"marketpl_db.products.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.05",
"prefix_cost": "2.10",
"data_read_per_join": "4"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"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": [
"marketpl_db.products.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.05",
"prefix_cost": "2.40",
"data_read_per_join": "976"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
},
{
"table": {
"table_name": "companies",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"company_id"
],
"key_length": "4",
"ref": [
"marketpl_db.products.company_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "10.00",
"cost_info": {
"read_cost": "0.25",
"eval_cost": "0.01",
"prefix_cost": "2.70",
"data_read_per_join": "397"
},
"used_columns": [
"company_id",
"status",
"company"
],
"attached_condition": "(`marketpl_db`.`companies`.`status` = 'A')"
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"marketpl_db.products_categories.category_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "20.00",
"cost_info": {
"read_cost": "0.03",
"eval_cost": "0.00",
"prefix_cost": "2.73",
"data_read_per_join": "13"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status"
],
"attached_condition": "(((`marketpl_db`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`marketpl_db`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`marketpl_db`.`cscart_categories`.`usergroup_ids`)) and (`marketpl_db`.`cscart_categories`.`status` in ('A','H')))"
}
},
{
"table": {
"table_name": "cscart_supplier_links",
"access_type": "ref",
"possible_keys": [
"object_id"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type"
],
"key_length": "7",
"ref": [
"marketpl_db.products.product_id",
"const"
],
"rows_examined_per_scan": 2,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.01",
"eval_cost": "0.00",
"prefix_cost": "2.74",
"data_read_per_join": "0"
},
"used_columns": [
"supplier_id",
"object_id",
"object_type"
],
"attached_condition": "<if>(is_not_null_compl(cscart_supplier_links), (`marketpl_db`.`cscart_supplier_links`.`object_id` = `marketpl_db`.`products`.`product_id`), true)"
}
}
]
}
}
}
}