3
14.30 ms
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = ? LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = ? WHERE p . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
419619
187851
422803
442128
624905
796877
808151
419531
507284
575983
766509
766503
742415
804072
431643
458770
646243
444915
441952
463825
468675
634155
454156
422171
824685
460289
470196
714925
485966
596779
400497
422340
424482
446964
536639
429899
422208
477730
491056
429879
787989
448882
515726
585964
493172
582443
485374
598859
518599
402876
397861
411036
574432
429872
637001
713176
525490
581013
637148
523565
564363
429890
418519
400491
656925
560660
558176
]
SELECT
p . post_id ,
p . user_id ,
p . content_id ,
p . public_key ,
p . search_field ,
p . cover ,
p . type ,
p . sexual_orientation ,
p . orientation ,
p . quality ,
p . noindex ,
p . nofollow ,
p . contents_num ,
p . duration ,
p . likes ,
p . dislikes ,
p . views ,
p . vote_rating ,
p . params ,
p . published_at ,
IFNULL (`r` . `title` , `f` . `title` ) as `title` ,
IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` ,
IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2`
FROM
post p
LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id`
AND `f` . `lang_id` = ?
LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id`
AND `r` . `lang_id` = ?
WHERE
p . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ?
)
Copy
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = 1 LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = 2 WHERE p . post_id IN (419619 , 187851 , 422803 , 442128 , 624905 , 796877 , 808151 , 419531 , 507284 , 575983 , 766509 , 766503 , 742415 , 804072 , 431643 , 458770 , 646243 , 444915 , 441952 , 463825 , 468675 , 634155 , 454156 , 422171 , 824685 , 460289 , 470196 , 714925 , 485966 , 596779 , 400497 , 422340 , 424482 , 446964 , 536639 , 429899 , 422208 , 477730 , 491056 , 429879 , 787989 , 448882 , 515726 , 585964 , 493172 , 582443 , 485374 , 598859 , 518599 , 402876 , 397861 , 411036 , 574432 , 429872 , 637001 , 713176 , 525490 , 581013 , 637148 , 523565 , 564363 , 429890 , 418519 , 400491 , 656925 , 560660 , 558176 );
Copy
4
2.82 ms
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = ? LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = ? WHERE pht . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
187851
397861
400491
400497
402876
411036
418519
419531
419619
422171
422208
422340
422803
424482
429872
429879
429890
429899
431643
441952
442128
444915
446964
448882
454156
458770
460289
463825
468675
470196
477730
485374
485966
491056
493172
507284
515726
518599
523565
525490
536639
558176
560660
564363
574432
575983
581013
582443
585964
596779
598859
624905
634155
637001
637148
646243
656925
713176
714925
742415
766503
766509
796877
804072
808151
824685
]
SELECT
pht . post_id ,
pht . tag_id ,
t . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_tag pht
INNER JOIN tag t ON pht . tag_id = t . tag_id
AND t . enabled = 1
LEFT JOIN tag_translation f ON t . tag_id = f . tag_id
AND f . lang_id = ?
LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id`
AND `r` . `lang_id` = ?
WHERE
pht . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ?
)
Copy
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = 1 LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = 2 WHERE pht . post_id IN (187851 , 397861 , 400491 , 400497 , 402876 , 411036 , 418519 , 419531 , 419619 , 422171 , 422208 , 422340 , 422803 , 424482 , 429872 , 429879 , 429890 , 429899 , 431643 , 441952 , 442128 , 444915 , 446964 , 448882 , 454156 , 458770 , 460289 , 463825 , 468675 , 470196 , 477730 , 485374 , 485966 , 491056 , 493172 , 507284 , 515726 , 518599 , 523565 , 525490 , 536639 , 558176 , 560660 , 564363 , 574432 , 575983 , 581013 , 582443 , 585964 , 596779 , 598859 , 624905 , 634155 , 637001 , 637148 , 646243 , 656925 , 713176 , 714925 , 742415 , 766503 , 766509 , 796877 , 804072 , 808151 , 824685 );
Copy
5
105.21 ms
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = ? LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = ? WHERE phc . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
187851
397861
400491
400497
402876
411036
418519
419531
419619
422171
422208
422340
422803
424482
429872
429879
429890
429899
431643
441952
442128
444915
446964
448882
454156
458770
460289
463825
468675
470196
477730
485374
485966
491056
493172
507284
515726
518599
523565
525490
536639
558176
560660
564363
574432
575983
581013
582443
585964
596779
598859
624905
634155
637001
637148
646243
656925
713176
714925
742415
766503
766509
796877
804072
808151
824685
]
SELECT
phc . post_id ,
phc . category_id ,
c . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_category phc
INNER JOIN category c ON phc . category_id = c . category_id
AND c . enabled = 1
LEFT JOIN category_translation f ON c . category_id = f . category_id
AND f . lang_id = ?
LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id`
AND `r` . `lang_id` = ?
WHERE
phc . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ?
)
Copy
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = 1 LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = 2 WHERE phc . post_id IN (187851 , 397861 , 400491 , 400497 , 402876 , 411036 , 418519 , 419531 , 419619 , 422171 , 422208 , 422340 , 422803 , 424482 , 429872 , 429879 , 429890 , 429899 , 431643 , 441952 , 442128 , 444915 , 446964 , 448882 , 454156 , 458770 , 460289 , 463825 , 468675 , 470196 , 477730 , 485374 , 485966 , 491056 , 493172 , 507284 , 515726 , 518599 , 523565 , 525490 , 536639 , 558176 , 560660 , 564363 , 574432 , 575983 , 581013 , 582443 , 585964 , 596779 , 598859 , 624905 , 634155 , 637001 , 637148 , 646243 , 656925 , 713176 , 714925 , 742415 , 766503 , 766509 , 796877 , 804072 , 808151 , 824685 );
Copy