3
10.84 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
475693
749632
820167
820156
578722
635822
732721
804297
689040
693420
648655
615137
734185
730924
642996
768660
441892
813565
824550
693273
704673
705111
712952
642562
798675
791742
739943
770591
705083
635578
644207
790578
752742
754183
741382
741551
764584
751981
725579
731382
743741
668072
687962
694633
719423
695786
732802
729190
765347
771819
741076
764634
794288
515337
675594
601880
799933
802503
799350
772763
817445
484944
564091
541157
560416
578655
799239
428695
426812
607023
448097
684694
564867
609531
446894
568062
621239
]
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 (475693 , 749632 , 820167 , 820156 , 578722 , 635822 , 732721 , 804297 , 689040 , 693420 , 648655 , 615137 , 734185 , 730924 , 642996 , 768660 , 441892 , 813565 , 824550 , 693273 , 704673 , 705111 , 712952 , 642562 , 798675 , 791742 , 739943 , 770591 , 705083 , 635578 , 644207 , 790578 , 752742 , 754183 , 741382 , 741551 , 764584 , 751981 , 725579 , 731382 , 743741 , 668072 , 687962 , 694633 , 719423 , 695786 , 732802 , 729190 , 765347 , 771819 , 741076 , 764634 , 794288 , 515337 , 675594 , 601880 , 799933 , 802503 , 799350 , 772763 , 817445 , 484944 , 564091 , 541157 , 560416 , 578655 , 799239 , 428695 , 426812 , 607023 , 448097 , 684694 , 564867 , 609531 , 446894 , 568062 , 621239 );
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
426812
428695
441892
446894
448097
475693
484944
515337
541157
560416
564091
564867
568062
578655
578722
601880
607023
609531
615137
621239
635578
635822
642562
642996
644207
648655
668072
684694
687962
689040
693273
693420
694633
695786
704673
705083
705111
712952
719423
725579
729190
730924
731382
732721
732802
734185
741076
741382
743741
749632
752742
764634
765347
768660
770591
771819
772763
790578
791742
794288
798675
799239
799350
799933
802503
804297
813565
817445
820156
820167
]
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 (426812 , 428695 , 441892 , 446894 , 448097 , 475693 , 484944 , 515337 , 541157 , 560416 , 564091 , 564867 , 568062 , 578655 , 578722 , 601880 , 607023 , 609531 , 615137 , 621239 , 635578 , 635822 , 642562 , 642996 , 644207 , 648655 , 668072 , 684694 , 687962 , 689040 , 693273 , 693420 , 694633 , 695786 , 704673 , 705083 , 705111 , 712952 , 719423 , 725579 , 729190 , 730924 , 731382 , 732721 , 732802 , 734185 , 741076 , 741382 , 743741 , 749632 , 752742 , 764634 , 765347 , 768660 , 770591 , 771819 , 772763 , 790578 , 791742 , 794288 , 798675 , 799239 , 799350 , 799933 , 802503 , 804297 , 813565 , 817445 , 820156 , 820167 );
Copy
5
83.39 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
426812
428695
441892
446894
448097
475693
484944
515337
541157
560416
564091
564867
568062
578655
578722
601880
607023
609531
615137
621239
635578
635822
642562
642996
644207
648655
668072
684694
687962
689040
693273
693420
694633
695786
704673
705083
705111
712952
719423
725579
729190
730924
731382
732721
732802
734185
741076
741382
743741
749632
752742
764634
765347
768660
770591
771819
772763
790578
791742
794288
798675
799239
799350
799933
802503
804297
813565
817445
820156
820167
]
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 (426812 , 428695 , 441892 , 446894 , 448097 , 475693 , 484944 , 515337 , 541157 , 560416 , 564091 , 564867 , 568062 , 578655 , 578722 , 601880 , 607023 , 609531 , 615137 , 621239 , 635578 , 635822 , 642562 , 642996 , 644207 , 648655 , 668072 , 684694 , 687962 , 689040 , 693273 , 693420 , 694633 , 695786 , 704673 , 705083 , 705111 , 712952 , 719423 , 725579 , 729190 , 730924 , 731382 , 732721 , 732802 , 734185 , 741076 , 741382 , 743741 , 749632 , 752742 , 764634 , 765347 , 768660 , 770591 , 771819 , 772763 , 790578 , 791742 , 794288 , 798675 , 799239 , 799350 , 799933 , 802503 , 804297 , 813565 , 817445 , 820156 , 820167 );
Copy