3
10.85 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
794837
72730
805781
788658
496298
792580
525514
532268
595811
732730
787017
819346
811040
544636
717880
572582
790386
400834
504745
669768
650781
607080
590627
721834
604844
645822
96495
387235
406946
443663
817877
533703
544977
702286
666159
600269
796250
751561
459086
644917
518090
601575
609229
743836
805838
443700
443903
495905
542790
561103
593870
515494
486516
468044
474655
484821
563844
681310
719336
590579
455977
458905
456393
465378
524943
506211
517654
559577
555805
]
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 (794837 , 72730 , 805781 , 788658 , 496298 , 792580 , 525514 , 532268 , 595811 , 732730 , 787017 , 819346 , 811040 , 544636 , 717880 , 572582 , 790386 , 400834 , 504745 , 669768 , 650781 , 607080 , 590627 , 721834 , 604844 , 645822 , 96495 , 387235 , 406946 , 443663 , 817877 , 533703 , 544977 , 702286 , 666159 , 600269 , 796250 , 751561 , 459086 , 644917 , 518090 , 601575 , 609229 , 743836 , 805838 , 443700 , 443903 , 495905 , 542790 , 561103 , 593870 , 515494 , 486516 , 468044 , 474655 , 484821 , 563844 , 681310 , 719336 , 590579 , 455977 , 458905 , 456393 , 465378 , 524943 , 506211 , 517654 , 559577 , 555805 );
Copy
4
2.74 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
72730
96495
387235
400834
406946
443663
443700
443903
455977
456393
458905
459086
465378
468044
474655
484821
486516
495905
496298
504745
506211
515494
517654
518090
524943
525514
532268
533703
542790
544636
544977
555805
559577
561103
563844
572582
590579
590627
593870
595811
600269
601575
604844
607080
609229
644917
645822
650781
666159
669768
681310
702286
717880
719336
721834
732730
743836
751561
787017
788658
790386
792580
794837
796250
805781
805838
811040
817877
819346
]
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 (72730 , 96495 , 387235 , 400834 , 406946 , 443663 , 443700 , 443903 , 455977 , 456393 , 458905 , 459086 , 465378 , 468044 , 474655 , 484821 , 486516 , 495905 , 496298 , 504745 , 506211 , 515494 , 517654 , 518090 , 524943 , 525514 , 532268 , 533703 , 542790 , 544636 , 544977 , 555805 , 559577 , 561103 , 563844 , 572582 , 590579 , 590627 , 593870 , 595811 , 600269 , 601575 , 604844 , 607080 , 609229 , 644917 , 645822 , 650781 , 666159 , 669768 , 681310 , 702286 , 717880 , 719336 , 721834 , 732730 , 743836 , 751561 , 787017 , 788658 , 790386 , 792580 , 794837 , 796250 , 805781 , 805838 , 811040 , 817877 , 819346 );
Copy
5
85.32 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
72730
96495
387235
400834
406946
443663
443700
443903
455977
456393
458905
459086
465378
468044
474655
484821
486516
495905
496298
504745
506211
515494
517654
518090
524943
525514
532268
533703
542790
544636
544977
555805
559577
561103
563844
572582
590579
590627
593870
595811
600269
601575
604844
607080
609229
644917
645822
650781
666159
669768
681310
702286
717880
719336
721834
732730
743836
751561
787017
788658
790386
792580
794837
796250
805781
805838
811040
817877
819346
]
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 (72730 , 96495 , 387235 , 400834 , 406946 , 443663 , 443700 , 443903 , 455977 , 456393 , 458905 , 459086 , 465378 , 468044 , 474655 , 484821 , 486516 , 495905 , 496298 , 504745 , 506211 , 515494 , 517654 , 518090 , 524943 , 525514 , 532268 , 533703 , 542790 , 544636 , 544977 , 555805 , 559577 , 561103 , 563844 , 572582 , 590579 , 590627 , 593870 , 595811 , 600269 , 601575 , 604844 , 607080 , 609229 , 644917 , 645822 , 650781 , 666159 , 669768 , 681310 , 702286 , 717880 , 719336 , 721834 , 732730 , 743836 , 751561 , 787017 , 788658 , 790386 , 792580 , 794837 , 796250 , 805781 , 805838 , 811040 , 817877 , 819346 );
Copy