Query time 0.00007
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "cscart_companies.company",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "cscart_companies",
"access_type": "ALL",
"possible_keys": ["PRIMARY"],
"rows": 12,
"filtered": 58.33333206,
"attached_condition": "cscart_companies.`status` = 'A' and cscart_companies.company_id in (2,64,92,103,104,121,127)"
}
},
{
"table": {
"table_name": "absolute_rating",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "102",
"used_key_parts": ["object_id", "object_type"],
"ref": ["ebonza_cscart_test.cscart_companies.company_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(absolute_rating.object_type = 'company')"
}
},
{
"table": {
"table_name": "cscart_vendor_plan_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "10",
"used_key_parts": ["plan_id", "lang_code"],
"ref": ["ebonza_cscart_test.cscart_companies.plan_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_vendor_plan_descriptions.lang_code = 'en')"
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": ["PRIMARY", "dispatch"],
"key": "PRIMARY",
"key_length": "206",
"used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
"ref": [
"ebonza_cscart_test.cscart_companies.company_id",
"const",
"const",
"const"
],
"rows": 16,
"filtered": 100,
"attached_condition": "trigcond(cscart_seo_names.object_id = cscart_companies.company_id and cscart_seo_names.`type` = 'm' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'en')"
}
},
{
"table": {
"table_name": "cscart_discussion",
"access_type": "eq_ref",
"possible_keys": ["object_id"],
"key": "object_id",
"key_length": "6",
"used_key_parts": ["object_id", "object_type"],
"ref": ["ebonza_cscart_test.cscart_companies.company_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_discussion.object_id = cscart_companies.company_id and cscart_discussion.object_type = 'M')"
}
},
{
"block-nl-join": {
"table": {
"table_name": "cscart_discussion_posts",
"access_type": "ALL",
"possible_keys": ["thread_id", "thread_id_2"],
"rows": 4,
"filtered": 100,
"attached_condition": "cscart_discussion_posts.`status` = 'A'"
},
"buffer_type": "flat",
"buffer_size": "256Kb",
"join_type": "BNL",
"attached_condition": "trigcond(cscart_discussion_posts.thread_id = cscart_discussion.thread_id and cscart_discussion_posts.`status` = 'A')"
}
},
{
"table": {
"table_name": "cscart_discussion_rating",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "thread_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["post_id"],
"ref": ["ebonza_cscart_test.cscart_discussion_posts.post_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_discussion_rating.thread_id = cscart_discussion.thread_id and trigcond(cscart_discussion_posts.post_id is not null))"
}
},
{
"table": {
"table_name": "vendor_locations",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["company_id"],
"ref": ["ebonza_cscart_test.cscart_companies.company_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(vendor_locations.company_id = cscart_companies.company_id)"
}
}
]
}
}
}
}
Result
| company_id |
lang_code |
email |
timestamp |
status |
company |
tax_number |
stripe_connect_account_id |
paypal_commerce_platform_account_id |
absolute_vendor_rating |
minimum_order_total |
plan |
seo_name |
seo_path |
average_rating |
company_thread_ids |
lat |
lng |
suspend_date |
last_time_suspended |
| 64 |
en |
sneakerstown@seznam.cz |
1749992053 |
A |
B2Bonza Test Vendor |
|
acct_1RaGJUQZ1vcS5kzm |
|
113 |
150 |
Founding Brands Program |
martin-terpak |
|
|
64_0 |
|
|
0 |
0 |
| 2 |
en |
renmar@centrum.sk |
1612812685 |
A |
RENMAR |
|
acct_1IdYgnEOaLZh7SFW |
|
22 |
2 |
B2Bonza |
renmar |
|
|
2_0 |
48.983322 |
22.158052 |
1754397943 |
1779277789 |
| 92 |
en |
retedi@seznam.cz |
1768385582 |
A |
RetediCZ |
|
|
|
|
|
B2Bonza |
retedicz |
|
|
92_0 |
|
|
0 |
0 |
| 103 |
en |
brandtest@seznam.cz |
1775812009 |
A |
Test Vendor no VAT |
|
acct_1TlTGBQi8q2NeOSL |
|
|
|
Pre-registration |
test-vendor-no-vat |
|
|
103_0 |
|
|
0 |
0 |
| 104 |
en |
martin@mail.b2bonza.com |
1775813518 |
A |
TEST VENDOR with VAT |
CZ29299896 |
|
|
|
|
Pre-registration |
test-vendor-with-vat |
|
|
104_0 |
|
|
0 |
0 |
| 127 |
en |
vendor310@yopmail.com |
1786108657 |
A |
vendor310 |
|
|
|
|
|
Pre-registration |
vendor310 |
|
|
127_0 |
|
|
0 |
0 |