Query time 0.00152
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.08935563,
"const_condition": "1",
"filesort": {
"sort_key": "tconnect_companies.company",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "absolute_rating",
"access_type": "system",
"possible_keys": ["PRIMARY"],
"rows": 0,
"filtered": 0,
"const_row_not_found": true
}
},
{
"table": {
"table_name": "tconnect_companies",
"access_type": "ALL",
"loops": 1,
"rows": 2,
"cost": 0.01034841,
"filtered": 100
}
},
{
"table": {
"table_name": "tconnect_vendor_plan_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "10",
"used_key_parts": ["plan_id", "lang_code"],
"ref": ["tconnect.tconnect_companies.plan_id", "const"],
"loops": 2,
"rows": 1,
"cost": 0.003662852,
"filtered": 100,
"attached_condition": "trigcond(tconnect_vendor_plan_descriptions.lang_code = 'en')"
}
},
{
"table": {
"table_name": "tconnect_seo_names",
"access_type": "ref",
"possible_keys": ["PRIMARY", "dispatch"],
"key": "PRIMARY",
"key_length": "206",
"used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
"ref": [
"tconnect.tconnect_companies.company_id",
"const",
"const",
"const"
],
"loops": 2,
"rows": 1,
"cost": 0.004101782,
"filtered": 100,
"attached_condition": "trigcond(tconnect_seo_names.object_id = tconnect_companies.company_id and tconnect_seo_names.`type` = 'm' and tconnect_seo_names.dispatch = '' and tconnect_seo_names.lang_code = 'en')"
}
},
{
"table": {
"table_name": "tconnect_discussion",
"access_type": "eq_ref",
"possible_keys": ["object_id"],
"key": "object_id",
"key_length": "6",
"used_key_parts": ["object_id", "object_type"],
"ref": ["tconnect.tconnect_companies.company_id", "const"],
"loops": 3.655,
"rows": 1,
"cost": 0.003715812,
"filtered": 100,
"attached_condition": "trigcond(tconnect_discussion.object_id = tconnect_companies.company_id and tconnect_discussion.object_type = 'M')"
}
},
{
"table": {
"table_name": "tconnect_discussion_posts",
"access_type": "ref",
"possible_keys": ["thread_id", "thread_id_2"],
"key": "thread_id",
"key_length": "3",
"used_key_parts": ["thread_id"],
"ref": ["tconnect.tconnect_discussion.thread_id"],
"loops": 3.655,
"rows": 6,
"cost": 0.029404434,
"filtered": 100,
"attached_condition": "trigcond(tconnect_discussion_posts.`status` = 'A' and trigcond(tconnect_discussion.thread_id is not null))"
}
},
{
"table": {
"table_name": "tconnect_discussion_rating",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "thread_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["post_id"],
"ref": ["tconnect.tconnect_discussion_posts.post_id"],
"loops": 21.93,
"rows": 1,
"cost": 0.03812234,
"filtered": 100,
"attached_condition": "trigcond(tconnect_discussion_rating.thread_id = tconnect_discussion.thread_id and trigcond(tconnect_discussion_posts.post_id is not null))"
}
}
]
}
}
}
}
Result
| company_id |
lang_code |
email |
timestamp |
status |
company |
tax_number |
absolute_vendor_rating |
plan |
seo_name |
seo_path |
average_rating |
company_thread_ids |
| 2 |
en |
acme_corp@example.com |
1269610461 |
A |
ACME Corp |
|
|
Bronze |
acme-corp |
|
|
2_0 |
| 1 |
en |
cs-cart@example.com |
1269610461 |
A |
CS-Cart |
|
|
Gold |
cs-cart |
|
|
1_0 |