Query time 0.00134
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "5.59"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "2.77"
},
"nested_loop": [
{
"table": {
"table_name": "c",
"access_type": "index",
"possible_keys": [
"PRIMARY",
"product_id"
],
"key": "PRIMARY",
"used_key_parts": [
"option_id",
"product_id"
],
"key_length": "6",
"rows_examined_per_scan": 3,
"rows_produced_per_join": 3,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.50",
"eval_cost": "0.30",
"prefix_cost": "0.80",
"data_read_per_join": "24"
},
"used_columns": [
"option_id",
"product_id"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`c`.`product_id` in (6902,7017,6920,7110,7272,6833,6841,7147,7153,6837,7000,6831,6835,7155,6891,6952,6917,6836,6839,7146,6847,6834,6838,7059,7118,6931,7130,6849,6900,6848,6832,7116,7078,6886,7308,6872,7160,6888,7274,7129,7071,6845,7124,7267,6937,7268,7068,7076,7159,7266,11313,7069,7157,6906,6929,7092,7133,7166,6935,7018,7072,7134,7139,7154,6930,6936,7115,7269,7162,6921,6934,6968,6970,7074,7127,7271,7073,6874,6904,6923,6961,7066,7117,7200,7202,7208,6928,7070,7128,7148,7156,7270,6926,6958,7067,7075,7111,7113,7131,7151,6840,6899,6912,6918,6924,6933,6957,7058,7077,7105,7126,7152,7198,7300,7326,7144,6844,6887,6905,6913,6925,6946,6953,6954,6960,6962,6972,7016,7056,7088,7112,7123,7135,7137,7145,7149,7150,7178,7180,7205,7296,7299,6875,6884,6895,6965,6973,6999,7001,7057,7091,7103,7163,7187,7188,7199,7304,7313,6916,6922)) and (`softwarepirmam_hewadelivard_cscart_4`.`c`.`option_id` is not null))"
}
},
{
"table": {
"table_name": "a",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"c_status"
],
"key": "PRIMARY",
"used_key_parts": [
"option_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.c.option_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "92.31",
"cost_info": {
"read_cost": "0.75",
"eval_cost": "0.28",
"prefix_cost": "1.85",
"data_read_per_join": "6K"
},
"used_columns": [
"option_id",
"product_id",
"company_id",
"option_type",
"regexp",
"required",
"multiupload",
"allowed_extensions",
"max_file_size",
"missing_variants_handling",
"status",
"position",
"value"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`a`.`product_id` = 0) and (`softwarepirmam_hewadelivard_cscart_4`.`a`.`status` = 'A'))"
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"option_id",
"lang_code"
],
"key_length": "9",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.c.option_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.69",
"eval_cost": "0.28",
"prefix_cost": "2.82",
"data_read_per_join": "9K"
},
"used_columns": [
"option_id",
"lang_code",
"option_name",
"internal_option_name",
"option_text",
"description",
"comment",
"inner_hint",
"incorrect_message"
]
}
}
]
}
}
}