Query time 0.00085
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.04578632,
"nested_loop": [
{
"read_sorted_file": {
"filesort": {
"sort_key": "cscart_product_reviews.product_review_timestamp desc",
"table": {
"table_name": "cscart_product_reviews",
"access_type": "ref",
"possible_keys": ["idx_product_id"],
"key": "idx_product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["const"],
"loops": 1,
"rows": 10,
"cost": 0.01403792,
"filtered": 100,
"attached_condition": "cscart_product_reviews.product_id <=> 786967 and cscart_product_reviews.`status` = 'A'"
}
}
}
},
{
"table": {
"table_name": "cscart_users",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["user_id"],
"ref": ["u985510652_ecartify_abhi.cscart_product_reviews.reply_user_id"],
"loops": 10,
"rows": 1,
"cost": 0.0105828,
"filtered": 100
}
},
{
"table": {
"table_name": "cscart_companies",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["company_id"],
"ref": ["u985510652_ecartify_abhi.cscart_users.company_id"],
"loops": 10,
"rows": 1,
"cost": 0.0097636,
"filtered": 100,
"attached_condition": "trigcond(trigcond(cscart_users.company_id is not null))"
}
},
{
"table": {
"table_name": "cscart_country_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "12",
"used_key_parts": ["code", "lang_code"],
"ref": [
"u985510652_ecartify_abhi.cscart_product_reviews.country_code",
"const"
],
"loops": 10,
"rows": 1,
"cost": 0.011402,
"filtered": 100,
"attached_condition": "trigcond(cscart_country_descriptions.lang_code = 'en')"
}
}
]
}
}
Result
| product_review_id |
product_id |
user_id |
name |
advantages |
disadvantages |
comment |
rating_value |
ip_address |
is_buyer |
product_review_timestamp |
country_code |
city |
reply_user_id |
reply |
reply_timestamp |
helpfulness |
status |
storefront_id |
images_count |
vote_up |
vote_down |
reply_company_id |
reply_company |
country |
| 59 |
786967 |
0 |
|
sadfasdf |
asdf |
asdfasdf |
5 |
6adb78c8 |
N |
1788725442 |
IN |
asdf |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
India |
| 58 |
786967 |
1 |
Gaurav test |
|
|
Lorem Ipsum is simply dummy text of the printing and typesetting industry. |
3 |
67d04450 |
N |
1782208371 |
IN |
asdf |
0 |
|
0 |
0 |
A |
1 |
4 |
0 |
0 |
|
|
India |
| 57 |
786967 |
1 |
Gaurav test |
|
|
Lorem Ipsum is simply dummy text of the printing and typesetting industry.Lorem Ipsum is simply dummy text of the printing and typesetting industry. |
4 |
67d04450 |
N |
1782208228 |
IN |
asdf |
0 |
|
0 |
0 |
A |
1 |
1 |
0 |
0 |
|
|
India |
| 56 |
786967 |
0 |
|
|
|
Lorem Ipsum is simply dummy text of the printing and typesetting industry. |
3 |
67d04450 |
N |
1782208171 |
IN |
asdf |
0 |
|
0 |
0 |
A |
1 |
3 |
0 |
0 |
|
|
India |
| 55 |
786967 |
0 |
|
|
|
test test |
4 |
67d04450 |
N |
1782208016 |
IN |
asdf |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
India |
| 54 |
786967 |
0 |
Test Test |
Three Photos |
Three Photos |
Three Photos |
4 |
2402e28041170146dd2198d88bcc3b23 |
N |
1779431710 |
|
|
0 |
|
0 |
1 |
A |
1 |
3 |
1 |
0 |
|
|
|
| 53 |
786967 |
1 |
Admin asdf Admin asfa |
kdjkasjdnj |
knkjadkk |
nkndkjsankjdk |
3 |
2402e280411701464cfa7b2421c72c8f |
N |
1776342450 |
US |
Boston |
0 |
|
0 |
-1 |
A |
1 |
1 |
0 |
1 |
|
|
United States |
| 52 |
786967 |
1 |
Admin asdf Admin asfa |
okdomskdkmm mmdsmadk mkmdm m c |
mkdmskm cm,ds mfm vc nkjfdnjvnm sjabjdnjwnuie jkcdsd dsad |
kjadondnnasjdnj dajs |
4 |
2402e2804117014604edf3f128feabd6 |
N |
1776258900 |
US |
Boston |
0 |
|
0 |
1 |
A |
1 |
0 |
1 |
0 |
|
|
United States |
| 51 |
786967 |
1 |
Admin asdf Admin asfa |
mknndsjnadkjn kdjn akjsnjd |
kjdnkjasnkjdn ndjasnjd |
kndjknkajsnd kjndjanjskd kjas djas djk kcmkmxomcmkc d scm sdk |
5 |
2402e2804117014604edf3f128feabd6 |
N |
1776258857 |
US |
Boston |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
United States |
| 50 |
786967 |
1 |
Admin asdf Admin asfa |
Advantage |
Disadvantage |
Comment |
4 |
2402e2804117014669aa1b949712e81b |
N |
1776161514 |
US |
Boston |
0 |
|
0 |
0 |
A |
1 |
0 |
0 |
0 |
|
|
United States |