Query time 0.00171
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "17.21"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id",
"index_categories_on_deleted_at"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"rows_examined_per_scan": 38,
"rows_produced_per_join": 0,
"filtered": "0.13",
"cost_info": {
"read_cost": "17.14",
"eval_cost": "0.01",
"prefix_cost": "17.14",
"data_read_per_join": "134"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"deleted_at",
"storefront_id"
],
"attached_condition": "((`goimagine`.`categories`.`company_id` = 39) and ((`goimagine`.`categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`goimagine`.`categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`goimagine`.`categories`.`usergroup_ids`))) and (`goimagine`.`categories`.`status` = 'A') and (`goimagine`.`categories`.`storefront_id` in (0,1)) and (`goimagine`.`categories`.`deleted_at` is null) and (`goimagine`.`categories`.`category_id` in (4,45,46,47,76,181,206,220,226,1948,1949,1950,1951,1952,1953,1954,1955,1956,1957,1958,1959,1960,1961,1962,1963,1964,1965,1966,1967,1968,1969,1970,1971,1972,1973,1974,1975,2013)))"
}
},
{
"table": {
"table_name": "category_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"lang_code"
],
"key_length": "9",
"ref": [
"goimagine.categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.01",
"eval_cost": "0.01",
"prefix_cost": "17.16",
"data_read_per_join": "232"
},
"used_columns": [
"category_id",
"lang_code",
"category",
"mega_m_category_banner_url",
"mega_m_category_svg_icon"
]
}
},
{
"table": {
"table_name": "seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"goimagine.categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.04",
"eval_cost": "0.01",
"prefix_cost": "17.21",
"data_read_per_join": "86"
},
"used_columns": [
"name",
"object_id",
"company_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
mega_m_category_banner_url |
mega_m_category_svg_icon |
| 2013 |
0 |
2013 |
All Products |
0 |
A |
39 |
0 |
all-products-en-16 |
|
|
|
| 1948 |
0 |
1948 |
Angels, Spiritual, Religious |
0 |
A |
39 |
0 |
angels-spiritual-religious |
|
|
|
| 1949 |
0 |
1949 |
Animals, Birds, Insects |
0 |
A |
39 |
0 |
animals-insects-bugs |
|
|
|
| 1950 |
0 |
1950 |
Art Themed |
0 |
A |
39 |
0 |
art-themed |
|
|
|
| 1951 |
0 |
1951 |
Beach Decor, Nautical |
0 |
A |
39 |
0 |
beach-decor-nautical |
|
|
|
| 1968 |
0 |
1968 |
Country, Rustic |
0 |
A |
39 |
0 |
country-rustic |
|
|
|
| 1952 |
0 |
1952 |
Fantasy |
0 |
A |
39 |
0 |
fantasy |
|
|
|
| 1953 |
0 |
1953 |
Floral, Trees, Leaves |
0 |
A |
39 |
0 |
floral-trees-leaves |
|
|
|
| 1954 |
0 |
1954 |
Food |
0 |
A |
39 |
0 |
food |
|
|
|
| 1955 |
0 |
1955 |
Gingham, Paisley, Check, Plaid, Stripes |
0 |
A |
39 |
0 |
gingham-paisley-check-plaid-stripes |
|
|
|
| 1956 |
0 |
1956 |
Gothic |
0 |
A |
39 |
0 |
gothic |
|
|
|
| 1957 |
0 |
1957 |
Groovy, Retro, Colorful |
0 |
A |
39 |
0 |
groovy-retro-colorful |
|
|
|
| 1958 |
0 |
1958 |
Holidays |
0 |
A |
39 |
0 |
holidays-en-5 |
|
|
|
| 1959 |
0 |
1959 |
Kids Room |
0 |
A |
39 |
0 |
kids-room |
|
|
|
| 1960 |
0 |
1960 |
Kitchen Theme |
0 |
A |
39 |
0 |
kitchen-theme |
|
|
|
| 1961 |
0 |
1961 |
Mandala |
0 |
A |
39 |
0 |
mandala |
|
|
|
| 1962 |
0 |
1962 |
Manly Design |
0 |
A |
39 |
0 |
manly-design |
|
|
|
| 1963 |
0 |
1963 |
Misc |
0 |
A |
39 |
0 |
misc |
|
|
|
| 1964 |
0 |
1964 |
Music, Musical |
0 |
A |
39 |
0 |
music-musical |
|
|
|
| 1965 |
0 |
1965 |
Nature |
0 |
A |
39 |
0 |
nature |
|
|
|
| 1966 |
0 |
1966 |
Ornamental |
0 |
A |
39 |
0 |
ornamental |
|
|
|
| 1967 |
0 |
1967 |
Places to See, Point of interest |
0 |
A |
39 |
0 |
places-to-see-point-of-interest |
|
|
|
| 1969 |
0 |
1969 |
Sewing, Crafts |
0 |
A |
39 |
0 |
sewing-crafts |
|
|
|
| 1970 |
0 |
1970 |
Southwest |
0 |
A |
39 |
0 |
southwest-en |
|
|
|
| 1971 |
0 |
1971 |
Space |
0 |
A |
39 |
0 |
space |
|
|
|
| 1972 |
0 |
1972 |
Steampunk |
0 |
A |
39 |
0 |
steampunk |
|
|
|
| 1973 |
0 |
1973 |
Transportation |
0 |
A |
39 |
0 |
transportation |
|
|
|
| 1974 |
0 |
1974 |
Watercolor |
0 |
A |
39 |
0 |
watercolor |
|
|
|
| 1975 |
0 |
1975 |
Wine, Beer, Winery |
0 |
A |
39 |
0 |
wine-beer-winery |
|
|
|