3
15.90 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
426037
446988
754426
672727
780366
731153
798789
725007
397589
635845
722707
660276
709408
625818
772898
617760
615190
784365
134597
441765
772163
729055
632168
714534
731165
746124
488463
499870
746171
715816
728704
466771
492178
781743
775064
683546
585854
604645
385461
546268
505256
392303
516504
604425
778820
450371
559546
559818
670750
719857
566331
720188
663547
707706
801143
468547
541575
707692
799143
401199
624142
513155
431088
515641
425959
58584
640614
187962
439623
676956
446431
519907
618743
527124
]
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 (426037 , 446988 , 754426 , 672727 , 780366 , 731153 , 798789 , 725007 , 397589 , 635845 , 722707 , 660276 , 709408 , 625818 , 772898 , 617760 , 615190 , 784365 , 134597 , 441765 , 772163 , 729055 , 632168 , 714534 , 731165 , 746124 , 488463 , 499870 , 746171 , 715816 , 728704 , 466771 , 492178 , 781743 , 775064 , 683546 , 585854 , 604645 , 385461 , 546268 , 505256 , 392303 , 516504 , 604425 , 778820 , 450371 , 559546 , 559818 , 670750 , 719857 , 566331 , 720188 , 663547 , 707706 , 801143 , 468547 , 541575 , 707692 , 799143 , 401199 , 624142 , 513155 , 431088 , 515641 , 425959 , 58584 , 640614 , 187962 , 439623 , 676956 , 446431 , 519907 , 618743 , 527124 );
Copy
4
3.43 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
58584
134597
187962
385461
392303
397589
401199
425959
426037
431088
439623
441765
446431
446988
450371
466771
468547
488463
492178
499870
505256
513155
515641
516504
519907
527124
541575
546268
559546
559818
566331
585854
604425
604645
615190
617760
618743
624142
625818
632168
635845
640614
660276
663547
670750
672727
676956
683546
707692
707706
709408
714534
715816
719857
720188
722707
725007
728704
729055
731153
731165
746124
746171
754426
772163
772898
775064
778820
780366
781743
784365
798789
799143
801143
]
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 (58584 , 134597 , 187962 , 385461 , 392303 , 397589 , 401199 , 425959 , 426037 , 431088 , 439623 , 441765 , 446431 , 446988 , 450371 , 466771 , 468547 , 488463 , 492178 , 499870 , 505256 , 513155 , 515641 , 516504 , 519907 , 527124 , 541575 , 546268 , 559546 , 559818 , 566331 , 585854 , 604425 , 604645 , 615190 , 617760 , 618743 , 624142 , 625818 , 632168 , 635845 , 640614 , 660276 , 663547 , 670750 , 672727 , 676956 , 683546 , 707692 , 707706 , 709408 , 714534 , 715816 , 719857 , 720188 , 722707 , 725007 , 728704 , 729055 , 731153 , 731165 , 746124 , 746171 , 754426 , 772163 , 772898 , 775064 , 778820 , 780366 , 781743 , 784365 , 798789 , 799143 , 801143 );
Copy
5
99.11 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
58584
134597
187962
385461
392303
397589
401199
425959
426037
431088
439623
441765
446431
446988
450371
466771
468547
488463
492178
499870
505256
513155
515641
516504
519907
527124
541575
546268
559546
559818
566331
585854
604425
604645
615190
617760
618743
624142
625818
632168
635845
640614
660276
663547
670750
672727
676956
683546
707692
707706
709408
714534
715816
719857
720188
722707
725007
728704
729055
731153
731165
746124
746171
754426
772163
772898
775064
778820
780366
781743
784365
798789
799143
801143
]
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 (58584 , 134597 , 187962 , 385461 , 392303 , 397589 , 401199 , 425959 , 426037 , 431088 , 439623 , 441765 , 446431 , 446988 , 450371 , 466771 , 468547 , 488463 , 492178 , 499870 , 505256 , 513155 , 515641 , 516504 , 519907 , 527124 , 541575 , 546268 , 559546 , 559818 , 566331 , 585854 , 604425 , 604645 , 615190 , 617760 , 618743 , 624142 , 625818 , 632168 , 635845 , 640614 , 660276 , 663547 , 670750 , 672727 , 676956 , 683546 , 707692 , 707706 , 709408 , 714534 , 715816 , 719857 , 720188 , 722707 , 725007 , 728704 , 729055 , 731153 , 731165 , 746124 , 746171 , 754426 , 772163 , 772898 , 775064 , 778820 , 780366 , 781743 , 784365 , 798789 , 799143 , 801143 );
Copy