Query time 0.00289
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "13.51"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"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_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.00",
"eval_cost": "0.10",
"prefix_cost": "0.00",
"data_read_per_join": "3K"
},
"used_columns": [
"category_id",
"storefront_id",
"usergroup_ids",
"status"
]
}
},
{
"table": {
"table_name": "companies",
"access_type": "ALL",
"possible_keys": [
"PRIMARY"
],
"rows_examined_per_scan": 10,
"rows_produced_per_join": 1,
"filtered": "10.00",
"cost_info": {
"read_cost": "1.46",
"eval_cost": "0.10",
"prefix_cost": "1.56",
"data_read_per_join": "6K"
},
"used_columns": [
"company_id",
"status",
"company"
],
"attached_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`companies`.`status` = 'A')"
}
},
{
"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_examined_per_scan": 23,
"rows_produced_per_join": 23,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.39",
"eval_cost": "2.30",
"prefix_cost": "4.25",
"data_read_per_join": "368"
},
"used_columns": [
"product_id",
"category_id"
]
}
},
{
"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": [
"softwarepirmam_hewadelivard_cscart_4.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "5.00",
"cost_info": {
"read_cost": "5.75",
"eval_cost": "0.12",
"prefix_cost": "12.30",
"data_read_per_join": "5K"
},
"used_columns": [
"product_id",
"product_type",
"status",
"company_id",
"amount",
"usergroup_ids",
"tracking",
"parent_product_id"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`products`.`company_id` = `softwarepirmam_hewadelivard_cscart_4`.`companies`.`company_id`) and (`softwarepirmam_hewadelivard_cscart_4`.`products`.`parent_product_id` = 0) and ((`softwarepirmam_hewadelivard_cscart_4`.`products`.`amount` > 0) or (`softwarepirmam_hewadelivard_cscart_4`.`products`.`tracking` = 'D')) and ((`softwarepirmam_hewadelivard_cscart_4`.`products`.`usergroup_ids` = '') or (0 <> find_in_set(0,`softwarepirmam_hewadelivard_cscart_4`.`products`.`usergroup_ids`)) or (0 <> find_in_set(1,`softwarepirmam_hewadelivard_cscart_4`.`products`.`usergroup_ids`))) and (`softwarepirmam_hewadelivard_cscart_4`.`products`.`status` = 'A') and (`softwarepirmam_hewadelivard_cscart_4`.`products`.`product_type` <> 'D'))"
}
},
{
"table": {
"table_name": "prices",
"access_type": "ref",
"possible_keys": [
"usergroup",
"product_id",
"lower_limit",
"usergroup_id"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "99.93",
"cost_info": {
"read_cost": "0.29",
"eval_cost": "0.11",
"prefix_cost": "12.70",
"data_read_per_join": "27"
},
"used_columns": [
"product_id",
"lower_limit",
"usergroup_id"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`prices`.`lower_limit` = 1) and (`softwarepirmam_hewadelivard_cscart_4`.`prices`.`usergroup_id` in (0,0,1)))"
}
},
{
"table": {
"table_name": "popularity",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"total"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.29",
"eval_cost": "0.11",
"prefix_cost": "13.10",
"data_read_per_join": "36"
},
"used_columns": [
"product_id",
"total"
]
}
},
{
"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": [
"softwarepirmam_hewadelivard_cscart_4.products_categories.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.29",
"eval_cost": "0.11",
"prefix_cost": "13.51",
"data_read_per_join": "5K"
},
"used_columns": [
"product_id",
"lang_code",
"product"
]
}
}
]
}
}
}
}
Result
| product_id |
product |
company_name |
product_type |
parent_product_id |
| 5035 |
هولوويتس AI Camera-1T كاميرا دوم PTZ 5MP مع إضاءة بالأشعة تحت الحمراء والضوء الأبيض وذكاء اصطناعي وميكروفون |
Delivard Store |
P |
0 |
| 5040 |
هولوويتس IP Camera-25X كاميرا PTZ شبكة 4MP مع إضاءة بالأشعة تحت الحمراء لمسافة 150م |
Delivard Store |
P |
0 |
| 5042 |
هولوويتس IP Camera-15X كاميرا PTZ شبكة 2MP مع إضاءة بالأشعة تحت الحمراء لمسافة 150م |
Delivard Store |
P |
0 |
| 6085 |
كاميرا إي زفيز بانورامية متحركة تعمل بالبطارية وبتقنية الواي فاي (2K+ |
Delivard Store |
P |
0 |
| 6016 |
كاميرا مكالمات الفيديو الذكية من EZVIZ |
Delivard Store |
P |
0 |
| 6084 |
كاميرا إي زفيز بانورامية متحركة تعمل بالبطارية وبتقنية الواي فاي (2K+) |
Delivard Store |
P |
0 |
| 6086 |
كاميرا EZVIZ ببطارية قابلة للشحن بميزة التحريك والإمالة عبر الواي فاي (4K) |
Delivard Store |
P |
0 |
| 6254 |
كاميرا واي فاي مزدوجة العدسات بزاوية دوران وإمالة من إيزفيز (3K و3K مزدوج العدسات) |
Delivard Store |
P |
0 |
| 6228 |
كاميرا واي فاي مزدوجة العدسة بزاوية دوران وإمالة من إيزفز |
Delivard Store |
P |
0 |
| 6192 |
كاميرا EZVIZ الذكية المنزلية مزدوجة العدسة بتقنية الواي فاي |
Delivard Store |
P |
0 |
| 6227 |
كاميرا المنزل الذكية القابلة للدوران والإمالة من إيزفيز |
Delivard Store |
P |
0 |
| 6230 |
كاميرا واي فاي بدقة 2K+ مزدوجة العدسات وقابلة للدوران والإمالة من EZVIZ |
Delivard Store |
P |
0 |
| 6275 |
كاميرا أمان إيزفيز القابلة للحركة والدوران بدقة 2K مع تقنية PoE |
Delivard Store |
P |
0 |
| 6258 |
كاميرا إيزفز الدوّارة والمائلة بتقنية الواي فاي (2K+) للحماية الشاملة |
Delivard Store |
P |
0 |
| 6255 |
كاميرا واي فاي ذكية منزلية ثلاثية العدسات من إيزفيز (2K+ ×3) |
Delivard Store |
P |
0 |
| 6229 |
كاميرا المنزل الذكي واي فاي من إيزفز (2K) |
Delivard Store |
P |
0 |
| 6256 |
كاميرا بان آند تلت واي-فاي بدقة 4K من EZVIZ |
Delivard Store |
P |
0 |
| 6257 |
كاميرا بان آند تلت واي فاي من إيزفيز (4K) – أمان ذكي بتقنية متطورة |
Delivard Store |
P |
0 |
| 6259 |
كاميرا إيزفز الدوّارة والمائلة بتقنية الواي فاي (3K) |
Delivard Store |
P |
0 |
| 6226 |
كاميرا المنزل الذكية القابلة للدوران والإمالة من إيزفيز |
Delivard Store |
P |
0 |