4
13.67 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
775341
670213
801237
805833
760685
804118
804121
748716
393687
678492
682993
787141
760657
753926
784659
804041
806032
579838
619489
775064
780130
798253
806017
737442
800201
772208
812072
485415
708577
800212
810676
813358
770633
771958
804117
808542
800184
802422
670634
590390
642308
798624
797788
813351
760687
736759
745078
760659
760681
799383
638437
810697
809516
760667
804460
810983
771881
493213
474026
536625
513335
636338
760649
602186
626147
804104
602974
643050
561095
571847
535011
625928
]
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 (775341 , 670213 , 801237 , 805833 , 760685 , 804118 , 804121 , 748716 , 393687 , 678492 , 682993 , 787141 , 760657 , 753926 , 784659 , 804041 , 806032 , 579838 , 619489 , 775064 , 780130 , 798253 , 806017 , 737442 , 800201 , 772208 , 812072 , 485415 , 708577 , 800212 , 810676 , 813358 , 770633 , 771958 , 804117 , 808542 , 800184 , 802422 , 670634 , 590390 , 642308 , 798624 , 797788 , 813351 , 760687 , 736759 , 745078 , 760659 , 760681 , 799383 , 638437 , 810697 , 809516 , 760667 , 804460 , 810983 , 771881 , 493213 , 474026 , 536625 , 513335 , 636338 , 760649 , 602186 , 626147 , 804104 , 602974 , 643050 , 561095 , 571847 , 535011 , 625928 );
Copy
5
3.20 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
393687
474026
485415
493213
513335
535011
536625
561095
571847
579838
590390
602186
602974
619489
625928
626147
636338
638437
642308
643050
670213
670634
678492
682993
708577
736759
737442
745078
748716
753926
760649
760657
760659
760667
760681
760685
760687
770633
771881
771958
772208
775064
775341
780130
784659
787141
797788
798253
798624
799383
800184
800201
800212
801237
802422
804041
804104
804117
804118
804121
804460
805833
806017
806032
808542
809516
810676
810697
810983
812072
813351
813358
]
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 (393687 , 474026 , 485415 , 493213 , 513335 , 535011 , 536625 , 561095 , 571847 , 579838 , 590390 , 602186 , 602974 , 619489 , 625928 , 626147 , 636338 , 638437 , 642308 , 643050 , 670213 , 670634 , 678492 , 682993 , 708577 , 736759 , 737442 , 745078 , 748716 , 753926 , 760649 , 760657 , 760659 , 760667 , 760681 , 760685 , 760687 , 770633 , 771881 , 771958 , 772208 , 775064 , 775341 , 780130 , 784659 , 787141 , 797788 , 798253 , 798624 , 799383 , 800184 , 800201 , 800212 , 801237 , 802422 , 804041 , 804104 , 804117 , 804118 , 804121 , 804460 , 805833 , 806017 , 806032 , 808542 , 809516 , 810676 , 810697 , 810983 , 812072 , 813351 , 813358 );
Copy
6
87.54 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
393687
474026
485415
493213
513335
535011
536625
561095
571847
579838
590390
602186
602974
619489
625928
626147
636338
638437
642308
643050
670213
670634
678492
682993
708577
736759
737442
745078
748716
753926
760649
760657
760659
760667
760681
760685
760687
770633
771881
771958
772208
775064
775341
780130
784659
787141
797788
798253
798624
799383
800184
800201
800212
801237
802422
804041
804104
804117
804118
804121
804460
805833
806017
806032
808542
809516
810676
810697
810983
812072
813351
813358
]
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 (393687 , 474026 , 485415 , 493213 , 513335 , 535011 , 536625 , 561095 , 571847 , 579838 , 590390 , 602186 , 602974 , 619489 , 625928 , 626147 , 636338 , 638437 , 642308 , 643050 , 670213 , 670634 , 678492 , 682993 , 708577 , 736759 , 737442 , 745078 , 748716 , 753926 , 760649 , 760657 , 760659 , 760667 , 760681 , 760685 , 760687 , 770633 , 771881 , 771958 , 772208 , 775064 , 775341 , 780130 , 784659 , 787141 , 797788 , 798253 , 798624 , 799383 , 800184 , 800201 , 800212 , 801237 , 802422 , 804041 , 804104 , 804117 , 804118 , 804121 , 804460 , 805833 , 806017 , 806032 , 808542 , 809516 , 810676 , 810697 , 810983 , 812072 , 813351 , 813358 );
Copy