3
9.82 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
538954
707287
576644
220769
750065
696268
541396
750061
628325
576709
576718
556986
559118
576715
696272
538865
559122
606425
648963
576713
576645
576711
576641
671760
541893
544571
556789
576633
546776
472312
621698
576687
583887
587763
606680
581350
750064
706899
546779
622981
550332
684029
630309
511391
581273
524951
581401
546747
541607
541887
548297
576695
576712
568259
621691
605345
583871
628321
541886
541366
576639
541588
673537
542954
541888
576638
577371
566243
]
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 (538954 , 707287 , 576644 , 220769 , 750065 , 696268 , 541396 , 750061 , 628325 , 576709 , 576718 , 556986 , 559118 , 576715 , 696272 , 538865 , 559122 , 606425 , 648963 , 576713 , 576645 , 576711 , 576641 , 671760 , 541893 , 544571 , 556789 , 576633 , 546776 , 472312 , 621698 , 576687 , 583887 , 587763 , 606680 , 581350 , 750064 , 706899 , 546779 , 622981 , 550332 , 684029 , 630309 , 511391 , 581273 , 524951 , 581401 , 546747 , 541607 , 541887 , 548297 , 576695 , 576712 , 568259 , 621691 , 605345 , 583871 , 628321 , 541886 , 541366 , 576639 , 541588 , 673537 , 542954 , 541888 , 576638 , 577371 , 566243 );
Copy
4
2.89 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
220769
472312
511391
524951
538865
538954
541366
541396
541588
541607
541886
541887
541888
541893
542954
544571
546747
546776
546779
548297
550332
556789
556986
559118
559122
566243
568259
576633
576638
576639
576641
576644
576645
576687
576695
576709
576711
576712
576713
576715
576718
577371
581273
581350
581401
583871
583887
587763
605345
606425
606680
621691
621698
622981
628321
628325
630309
648963
671760
673537
684029
696268
696272
706899
707287
750061
750064
750065
]
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 (220769 , 472312 , 511391 , 524951 , 538865 , 538954 , 541366 , 541396 , 541588 , 541607 , 541886 , 541887 , 541888 , 541893 , 542954 , 544571 , 546747 , 546776 , 546779 , 548297 , 550332 , 556789 , 556986 , 559118 , 559122 , 566243 , 568259 , 576633 , 576638 , 576639 , 576641 , 576644 , 576645 , 576687 , 576695 , 576709 , 576711 , 576712 , 576713 , 576715 , 576718 , 577371 , 581273 , 581350 , 581401 , 583871 , 583887 , 587763 , 605345 , 606425 , 606680 , 621691 , 621698 , 622981 , 628321 , 628325 , 630309 , 648963 , 671760 , 673537 , 684029 , 696268 , 696272 , 706899 , 707287 , 750061 , 750064 , 750065 );
Copy
5
125.77 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
220769
472312
511391
524951
538865
538954
541366
541396
541588
541607
541886
541887
541888
541893
542954
544571
546747
546776
546779
548297
550332
556789
556986
559118
559122
566243
568259
576633
576638
576639
576641
576644
576645
576687
576695
576709
576711
576712
576713
576715
576718
577371
581273
581350
581401
583871
583887
587763
605345
606425
606680
621691
621698
622981
628321
628325
630309
648963
671760
673537
684029
696268
696272
706899
707287
750061
750064
750065
]
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 (220769 , 472312 , 511391 , 524951 , 538865 , 538954 , 541366 , 541396 , 541588 , 541607 , 541886 , 541887 , 541888 , 541893 , 542954 , 544571 , 546747 , 546776 , 546779 , 548297 , 550332 , 556789 , 556986 , 559118 , 559122 , 566243 , 568259 , 576633 , 576638 , 576639 , 576641 , 576644 , 576645 , 576687 , 576695 , 576709 , 576711 , 576712 , 576713 , 576715 , 576718 , 577371 , 581273 , 581350 , 581401 , 583871 , 583887 , 587763 , 605345 , 606425 , 606680 , 621691 , 621698 , 622981 , 628321 , 628325 , 630309 , 648963 , 671760 , 673537 , 684029 , 696268 , 696272 , 706899 , 707287 , 750061 , 750064 , 750065 );
Copy