4
13.07 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
560049
529174
792179
785855
759643
616448
703265
788826
510545
755450
791726
744842
423580
816617
783838
766609
574810
613513
568999
820850
788650
602395
606652
569118
606165
476073
541868
695339
700846
585993
765254
732033
773911
446562
821503
814401
500593
528315
713845
737450
773906
729231
709622
524846
560969
517843
575080
644490
788852
557186
412706
576360
666816
506189
672711
569091
696606
500268
470903
642875
569047
643350
524002
591620
598092
453152
463882
520663
545480
585967
545721
513662
501119
398877
620124
]
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 (560049 , 529174 , 792179 , 785855 , 759643 , 616448 , 703265 , 788826 , 510545 , 755450 , 791726 , 744842 , 423580 , 816617 , 783838 , 766609 , 574810 , 613513 , 568999 , 820850 , 788650 , 602395 , 606652 , 569118 , 606165 , 476073 , 541868 , 695339 , 700846 , 585993 , 765254 , 732033 , 773911 , 446562 , 821503 , 814401 , 500593 , 528315 , 713845 , 737450 , 773906 , 729231 , 709622 , 524846 , 560969 , 517843 , 575080 , 644490 , 788852 , 557186 , 412706 , 576360 , 666816 , 506189 , 672711 , 569091 , 696606 , 500268 , 470903 , 642875 , 569047 , 643350 , 524002 , 591620 , 598092 , 453152 , 463882 , 520663 , 545480 , 585967 , 545721 , 513662 , 501119 , 398877 , 620124 );
Copy
5
2.87 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
398877
412706
423580
446562
453152
463882
470903
476073
500268
500593
501119
506189
510545
513662
517843
520663
524002
524846
528315
529174
541868
545480
545721
557186
560049
560969
568999
569047
569091
569118
574810
575080
576360
585967
585993
591620
598092
602395
606165
606652
613513
616448
620124
642875
643350
644490
666816
672711
695339
696606
700846
703265
709622
713845
729231
732033
737450
744842
755450
759643
765254
766609
773906
773911
783838
785855
788650
788826
788852
791726
792179
814401
816617
820850
821503
]
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 (398877 , 412706 , 423580 , 446562 , 453152 , 463882 , 470903 , 476073 , 500268 , 500593 , 501119 , 506189 , 510545 , 513662 , 517843 , 520663 , 524002 , 524846 , 528315 , 529174 , 541868 , 545480 , 545721 , 557186 , 560049 , 560969 , 568999 , 569047 , 569091 , 569118 , 574810 , 575080 , 576360 , 585967 , 585993 , 591620 , 598092 , 602395 , 606165 , 606652 , 613513 , 616448 , 620124 , 642875 , 643350 , 644490 , 666816 , 672711 , 695339 , 696606 , 700846 , 703265 , 709622 , 713845 , 729231 , 732033 , 737450 , 744842 , 755450 , 759643 , 765254 , 766609 , 773906 , 773911 , 783838 , 785855 , 788650 , 788826 , 788852 , 791726 , 792179 , 814401 , 816617 , 820850 , 821503 );
Copy
6
97.44 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
398877
412706
423580
446562
453152
463882
470903
476073
500268
500593
501119
506189
510545
513662
517843
520663
524002
524846
528315
529174
541868
545480
545721
557186
560049
560969
568999
569047
569091
569118
574810
575080
576360
585967
585993
591620
598092
602395
606165
606652
613513
616448
620124
642875
643350
644490
666816
672711
695339
696606
700846
703265
709622
713845
729231
732033
737450
744842
755450
759643
765254
766609
773906
773911
783838
785855
788650
788826
788852
791726
792179
814401
816617
820850
821503
]
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 (398877 , 412706 , 423580 , 446562 , 453152 , 463882 , 470903 , 476073 , 500268 , 500593 , 501119 , 506189 , 510545 , 513662 , 517843 , 520663 , 524002 , 524846 , 528315 , 529174 , 541868 , 545480 , 545721 , 557186 , 560049 , 560969 , 568999 , 569047 , 569091 , 569118 , 574810 , 575080 , 576360 , 585967 , 585993 , 591620 , 598092 , 602395 , 606165 , 606652 , 613513 , 616448 , 620124 , 642875 , 643350 , 644490 , 666816 , 672711 , 695339 , 696606 , 700846 , 703265 , 709622 , 713845 , 729231 , 732033 , 737450 , 744842 , 755450 , 759643 , 765254 , 766609 , 773906 , 773911 , 783838 , 785855 , 788650 , 788826 , 788852 , 791726 , 792179 , 814401 , 816617 , 820850 , 821503 );
Copy