Query time 0.00027
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "a.position",
"temporary_table": {
"table": {
"table_name": "a",
"access_type": "ALL",
"possible_keys": ["shipping_id"],
"rows": 4,
"filtered": 100,
"attached_condition": "a.company_id = 3 or a.shipping_id in (1,8) and a.company_id in (0,3)"
},
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["shipping_id", "lang_code"],
"ref": ["multi_vendor.a.shipping_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(b.lang_code = 'fr')"
},
"table": {
"table_name": "c",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["company_id"],
"ref": ["multi_vendor.a.company_id"],
"rows": 1,
"filtered": 100
},
"block-nl-join": {
"table": {
"table_name": "storefronts_shippings",
"access_type": "index",
"key": "PRIMARY",
"key_length": "8",
"used_key_parts": ["storefront_id", "shipping_id"],
"rows": 1,
"filtered": 100,
"using_index": true
},
"buffer_type": "flat",
"buffer_size": "35Kb",
"join_type": "BNL",
"attached_condition": "trigcond(storefronts_shippings.storefront_id = 1 or storefronts_shippings.storefront_id is null) and trigcond(storefronts_shippings.shipping_id = a.shipping_id)"
}
}
}
}
}
Result
| shipping_id |
company_id |
min_weight |
max_weight |
position |
status |
tax_ids |
usergroup_ids |
shipping |
delivery_time |
company_name |
storefront_id |
| 1 |
0 |
0.001 |
5.000 |
20 |
A |
|
0,1,2,3 |
Chronopost Ramassage (sous 12 heures) |
|
|
|
| 8 |
0 |
0.000 |
5.000 |
30 |
A |
|
0 |
TNT Ramassage (sous 12 heures) |
|
|
|