3
14.77 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
604425
80314
383447
446988
783143
457190
798789
722707
754426
510928
606628
591963
625818
725007
772898
617760
769196
689488
634917
784365
134597
680279
800551
729055
604356
445188
775064
632168
466771
545821
650082
492178
714534
781743
730110
746124
454578
505256
714147
450371
287459
361286
663547
604645
778820
453025
438353
670750
447843
720188
496608
505548
559546
719857
799143
801143
541575
566422
624142
513155
515641
425959
519905
640614
187962
427299
519907
439623
527124
446431
]
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 (604425 , 80314 , 383447 , 446988 , 783143 , 457190 , 798789 , 722707 , 754426 , 510928 , 606628 , 591963 , 625818 , 725007 , 772898 , 617760 , 769196 , 689488 , 634917 , 784365 , 134597 , 680279 , 800551 , 729055 , 604356 , 445188 , 775064 , 632168 , 466771 , 545821 , 650082 , 492178 , 714534 , 781743 , 730110 , 746124 , 454578 , 505256 , 714147 , 450371 , 287459 , 361286 , 663547 , 604645 , 778820 , 453025 , 438353 , 670750 , 447843 , 720188 , 496608 , 505548 , 559546 , 719857 , 799143 , 801143 , 541575 , 566422 , 624142 , 513155 , 515641 , 425959 , 519905 , 640614 , 187962 , 427299 , 519907 , 439623 , 527124 , 446431 );
Copy
4
3.60 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
80314
134597
187962
287459
361286
383447
425959
427299
438353
439623
445188
446431
446988
447843
450371
453025
454578
457190
466771
492178
496608
505256
505548
510928
513155
515641
519905
519907
527124
541575
545821
559546
566422
591963
604356
604425
604645
606628
617760
624142
625818
632168
634917
640614
650082
663547
670750
680279
689488
714147
714534
719857
720188
722707
725007
729055
730110
746124
754426
769196
772898
775064
778820
781743
783143
784365
798789
799143
800551
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 (80314 , 134597 , 187962 , 287459 , 361286 , 383447 , 425959 , 427299 , 438353 , 439623 , 445188 , 446431 , 446988 , 447843 , 450371 , 453025 , 454578 , 457190 , 466771 , 492178 , 496608 , 505256 , 505548 , 510928 , 513155 , 515641 , 519905 , 519907 , 527124 , 541575 , 545821 , 559546 , 566422 , 591963 , 604356 , 604425 , 604645 , 606628 , 617760 , 624142 , 625818 , 632168 , 634917 , 640614 , 650082 , 663547 , 670750 , 680279 , 689488 , 714147 , 714534 , 719857 , 720188 , 722707 , 725007 , 729055 , 730110 , 746124 , 754426 , 769196 , 772898 , 775064 , 778820 , 781743 , 783143 , 784365 , 798789 , 799143 , 800551 , 801143 );
Copy
5
113.84 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
80314
134597
187962
287459
361286
383447
425959
427299
438353
439623
445188
446431
446988
447843
450371
453025
454578
457190
466771
492178
496608
505256
505548
510928
513155
515641
519905
519907
527124
541575
545821
559546
566422
591963
604356
604425
604645
606628
617760
624142
625818
632168
634917
640614
650082
663547
670750
680279
689488
714147
714534
719857
720188
722707
725007
729055
730110
746124
754426
769196
772898
775064
778820
781743
783143
784365
798789
799143
800551
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 (80314 , 134597 , 187962 , 287459 , 361286 , 383447 , 425959 , 427299 , 438353 , 439623 , 445188 , 446431 , 446988 , 447843 , 450371 , 453025 , 454578 , 457190 , 466771 , 492178 , 496608 , 505256 , 505548 , 510928 , 513155 , 515641 , 519905 , 519907 , 527124 , 541575 , 545821 , 559546 , 566422 , 591963 , 604356 , 604425 , 604645 , 606628 , 617760 , 624142 , 625818 , 632168 , 634917 , 640614 , 650082 , 663547 , 670750 , 680279 , 689488 , 714147 , 714534 , 719857 , 720188 , 722707 , 725007 , 729055 , 730110 , 746124 , 754426 , 769196 , 772898 , 775064 , 778820 , 781743 , 783143 , 784365 , 798789 , 799143 , 800551 , 801143 );
Copy