3
7.99 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
547342
547325
547317
794076
800444
547322
751003
629853
560223
589699
603589
743240
773857
804426
772332
795545
752798
759483
533267
552301
607542
620511
734500
806847
476970
530442
651102
610283
769668
783739
566741
553866
588596
605405
804594
764524
764507
541276
565055
665930
639252
587210
636904
805431
776935
740038
760059
552967
603778
786604
758742
771837
771821
620742
523781
565658
587703
782804
758972
772038
525637
533870
567843
647609
586380
591607
595931
545621
521409
]
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 (547342 , 547325 , 547317 , 794076 , 800444 , 547322 , 751003 , 629853 , 560223 , 589699 , 603589 , 743240 , 773857 , 804426 , 772332 , 795545 , 752798 , 759483 , 533267 , 552301 , 607542 , 620511 , 734500 , 806847 , 476970 , 530442 , 651102 , 610283 , 769668 , 783739 , 566741 , 553866 , 588596 , 605405 , 804594 , 764524 , 764507 , 541276 , 565055 , 665930 , 639252 , 587210 , 636904 , 805431 , 776935 , 740038 , 760059 , 552967 , 603778 , 786604 , 758742 , 771837 , 771821 , 620742 , 523781 , 565658 , 587703 , 782804 , 758972 , 772038 , 525637 , 533870 , 567843 , 647609 , 586380 , 591607 , 595931 , 545621 , 521409 );
Copy
4
2.12 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
476970
521409
523781
525637
530442
533267
533870
541276
545621
547317
547322
547325
547342
552301
552967
553866
560223
565055
565658
566741
567843
586380
587210
587703
588596
589699
591607
595931
603589
603778
605405
607542
610283
620511
620742
629853
636904
639252
647609
651102
665930
734500
740038
743240
751003
752798
758742
758972
759483
760059
764507
764524
769668
771821
771837
772038
772332
773857
776935
782804
783739
786604
794076
795545
800444
804426
804594
805431
806847
]
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 (476970 , 521409 , 523781 , 525637 , 530442 , 533267 , 533870 , 541276 , 545621 , 547317 , 547322 , 547325 , 547342 , 552301 , 552967 , 553866 , 560223 , 565055 , 565658 , 566741 , 567843 , 586380 , 587210 , 587703 , 588596 , 589699 , 591607 , 595931 , 603589 , 603778 , 605405 , 607542 , 610283 , 620511 , 620742 , 629853 , 636904 , 639252 , 647609 , 651102 , 665930 , 734500 , 740038 , 743240 , 751003 , 752798 , 758742 , 758972 , 759483 , 760059 , 764507 , 764524 , 769668 , 771821 , 771837 , 772038 , 772332 , 773857 , 776935 , 782804 , 783739 , 786604 , 794076 , 795545 , 800444 , 804426 , 804594 , 805431 , 806847 );
Copy
5
78.08 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
476970
521409
523781
525637
530442
533267
533870
541276
545621
547317
547322
547325
547342
552301
552967
553866
560223
565055
565658
566741
567843
586380
587210
587703
588596
589699
591607
595931
603589
603778
605405
607542
610283
620511
620742
629853
636904
639252
647609
651102
665930
734500
740038
743240
751003
752798
758742
758972
759483
760059
764507
764524
769668
771821
771837
772038
772332
773857
776935
782804
783739
786604
794076
795545
800444
804426
804594
805431
806847
]
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 (476970 , 521409 , 523781 , 525637 , 530442 , 533267 , 533870 , 541276 , 545621 , 547317 , 547322 , 547325 , 547342 , 552301 , 552967 , 553866 , 560223 , 565055 , 565658 , 566741 , 567843 , 586380 , 587210 , 587703 , 588596 , 589699 , 591607 , 595931 , 603589 , 603778 , 605405 , 607542 , 610283 , 620511 , 620742 , 629853 , 636904 , 639252 , 647609 , 651102 , 665930 , 734500 , 740038 , 743240 , 751003 , 752798 , 758742 , 758972 , 759483 , 760059 , 764507 , 764524 , 769668 , 771821 , 771837 , 772038 , 772332 , 773857 , 776935 , 782804 , 783739 , 786604 , 794076 , 795545 , 800444 , 804426 , 804594 , 805431 , 806847 );
Copy