3
11.34 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
589752
804674
699549
800931
817416
423647
396018
790962
818309
454370
713091
794557
794796
802346
95915
387601
825039
488619
807635
699596
772804
783109
729826
770877
716404
457651
537932
648223
680977
714522
714549
449953
505625
717839
397306
475836
531227
533831
586859
601636
806087
411014
471429
522596
681547
719336
583496
595768
643079
519567
631902
522592
415936
523868
556029
387782
512561
523027
729829
405074
486426
580107
577435
622241
593860
568045
]
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 (589752 , 804674 , 699549 , 800931 , 817416 , 423647 , 396018 , 790962 , 818309 , 454370 , 713091 , 794557 , 794796 , 802346 , 95915 , 387601 , 825039 , 488619 , 807635 , 699596 , 772804 , 783109 , 729826 , 770877 , 716404 , 457651 , 537932 , 648223 , 680977 , 714522 , 714549 , 449953 , 505625 , 717839 , 397306 , 475836 , 531227 , 533831 , 586859 , 601636 , 806087 , 411014 , 471429 , 522596 , 681547 , 719336 , 583496 , 595768 , 643079 , 519567 , 631902 , 522592 , 415936 , 523868 , 556029 , 387782 , 512561 , 523027 , 729829 , 405074 , 486426 , 580107 , 577435 , 622241 , 593860 , 568045 );
Copy
4
3.19 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
95915
387601
387782
396018
397306
405074
411014
415936
423647
449953
454370
457651
471429
475836
486426
488619
505625
512561
519567
522592
522596
523027
523868
531227
533831
537932
556029
568045
577435
580107
583496
586859
589752
593860
595768
601636
622241
631902
643079
648223
680977
681547
699549
699596
713091
714522
714549
716404
717839
719336
729826
729829
770877
772804
783109
790962
794557
794796
800931
802346
804674
806087
807635
817416
818309
825039
]
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 (95915 , 387601 , 387782 , 396018 , 397306 , 405074 , 411014 , 415936 , 423647 , 449953 , 454370 , 457651 , 471429 , 475836 , 486426 , 488619 , 505625 , 512561 , 519567 , 522592 , 522596 , 523027 , 523868 , 531227 , 533831 , 537932 , 556029 , 568045 , 577435 , 580107 , 583496 , 586859 , 589752 , 593860 , 595768 , 601636 , 622241 , 631902 , 643079 , 648223 , 680977 , 681547 , 699549 , 699596 , 713091 , 714522 , 714549 , 716404 , 717839 , 719336 , 729826 , 729829 , 770877 , 772804 , 783109 , 790962 , 794557 , 794796 , 800931 , 802346 , 804674 , 806087 , 807635 , 817416 , 818309 , 825039 );
Copy
5
76.45 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
95915
387601
387782
396018
397306
405074
411014
415936
423647
449953
454370
457651
471429
475836
486426
488619
505625
512561
519567
522592
522596
523027
523868
531227
533831
537932
556029
568045
577435
580107
583496
586859
589752
593860
595768
601636
622241
631902
643079
648223
680977
681547
699549
699596
713091
714522
714549
716404
717839
719336
729826
729829
770877
772804
783109
790962
794557
794796
800931
802346
804674
806087
807635
817416
818309
825039
]
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 (95915 , 387601 , 387782 , 396018 , 397306 , 405074 , 411014 , 415936 , 423647 , 449953 , 454370 , 457651 , 471429 , 475836 , 486426 , 488619 , 505625 , 512561 , 519567 , 522592 , 522596 , 523027 , 523868 , 531227 , 533831 , 537932 , 556029 , 568045 , 577435 , 580107 , 583496 , 586859 , 589752 , 593860 , 595768 , 601636 , 622241 , 631902 , 643079 , 648223 , 680977 , 681547 , 699549 , 699596 , 713091 , 714522 , 714549 , 716404 , 717839 , 719336 , 729826 , 729829 , 770877 , 772804 , 783109 , 790962 , 794557 , 794796 , 800931 , 802346 , 804674 , 806087 , 807635 , 817416 , 818309 , 825039 );
Copy