3
9.05 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
701506
734184
514112
452825
594179
803030
747619
824654
710639
791657
727280
702318
588363
777867
786085
731122
740909
541063
684874
640366
783548
786390
742066
754161
728121
734030
763815
777862
785526
773187
792964
768952
740527
745715
693779
620547
609930
804668
808713
749575
751427
679500
662169
796629
758248
802003
817173
512586
558573
684507
778811
743076
790575
439469
442558
484023
455525
523347
505526
460431
555853
629688
518634
476575
517418
556496
553399
486866
615770
]
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 (701506 , 734184 , 514112 , 452825 , 594179 , 803030 , 747619 , 824654 , 710639 , 791657 , 727280 , 702318 , 588363 , 777867 , 786085 , 731122 , 740909 , 541063 , 684874 , 640366 , 783548 , 786390 , 742066 , 754161 , 728121 , 734030 , 763815 , 777862 , 785526 , 773187 , 792964 , 768952 , 740527 , 745715 , 693779 , 620547 , 609930 , 804668 , 808713 , 749575 , 751427 , 679500 , 662169 , 796629 , 758248 , 802003 , 817173 , 512586 , 558573 , 684507 , 778811 , 743076 , 790575 , 439469 , 442558 , 484023 , 455525 , 523347 , 505526 , 460431 , 555853 , 629688 , 518634 , 476575 , 517418 , 556496 , 553399 , 486866 , 615770 );
Copy
4
2.63 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
439469
442558
452825
455525
460431
476575
484023
486866
505526
512586
514112
517418
518634
523347
541063
553399
555853
556496
558573
588363
594179
609930
615770
620547
629688
640366
662169
679500
684507
684874
693779
701506
702318
710639
727280
728121
731122
734030
734184
740527
740909
742066
743076
745715
747619
749575
751427
754161
758248
763815
768952
773187
777862
777867
778811
783548
785526
786085
786390
790575
791657
792964
796629
802003
803030
804668
808713
817173
824654
]
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 (439469 , 442558 , 452825 , 455525 , 460431 , 476575 , 484023 , 486866 , 505526 , 512586 , 514112 , 517418 , 518634 , 523347 , 541063 , 553399 , 555853 , 556496 , 558573 , 588363 , 594179 , 609930 , 615770 , 620547 , 629688 , 640366 , 662169 , 679500 , 684507 , 684874 , 693779 , 701506 , 702318 , 710639 , 727280 , 728121 , 731122 , 734030 , 734184 , 740527 , 740909 , 742066 , 743076 , 745715 , 747619 , 749575 , 751427 , 754161 , 758248 , 763815 , 768952 , 773187 , 777862 , 777867 , 778811 , 783548 , 785526 , 786085 , 786390 , 790575 , 791657 , 792964 , 796629 , 802003 , 803030 , 804668 , 808713 , 817173 , 824654 );
Copy
5
120.89 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
439469
442558
452825
455525
460431
476575
484023
486866
505526
512586
514112
517418
518634
523347
541063
553399
555853
556496
558573
588363
594179
609930
615770
620547
629688
640366
662169
679500
684507
684874
693779
701506
702318
710639
727280
728121
731122
734030
734184
740527
740909
742066
743076
745715
747619
749575
751427
754161
758248
763815
768952
773187
777862
777867
778811
783548
785526
786085
786390
790575
791657
792964
796629
802003
803030
804668
808713
817173
824654
]
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 (439469 , 442558 , 452825 , 455525 , 460431 , 476575 , 484023 , 486866 , 505526 , 512586 , 514112 , 517418 , 518634 , 523347 , 541063 , 553399 , 555853 , 556496 , 558573 , 588363 , 594179 , 609930 , 615770 , 620547 , 629688 , 640366 , 662169 , 679500 , 684507 , 684874 , 693779 , 701506 , 702318 , 710639 , 727280 , 728121 , 731122 , 734030 , 734184 , 740527 , 740909 , 742066 , 743076 , 745715 , 747619 , 749575 , 751427 , 754161 , 758248 , 763815 , 768952 , 773187 , 777862 , 777867 , 778811 , 783548 , 785526 , 786085 , 786390 , 790575 , 791657 , 792964 , 796629 , 802003 , 803030 , 804668 , 808713 , 817173 , 824654 );
Copy