3
10.33 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
791216
551473
794908
825291
819766
824552
515443
817675
495407
794482
800524
824164
411534
828228
641322
805269
603919
619828
596796
721230
552370
827653
771281
488238
555091
578301
522249
513839
476692
454460
583384
760602
761941
470403
553609
791209
709848
630457
784110
766342
438052
471620
571726
609083
666370
710275
587212
617672
741855
620475
479950
522216
551525
499089
637444
479965
537670
600995
496518
532380
427981
625441
605365
462679
593485
]
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 (791216 , 551473 , 794908 , 825291 , 819766 , 824552 , 515443 , 817675 , 495407 , 794482 , 800524 , 824164 , 411534 , 828228 , 641322 , 805269 , 603919 , 619828 , 596796 , 721230 , 552370 , 827653 , 771281 , 488238 , 555091 , 578301 , 522249 , 513839 , 476692 , 454460 , 583384 , 760602 , 761941 , 470403 , 553609 , 791209 , 709848 , 630457 , 784110 , 766342 , 438052 , 471620 , 571726 , 609083 , 666370 , 710275 , 587212 , 617672 , 741855 , 620475 , 479950 , 522216 , 551525 , 499089 , 637444 , 479965 , 537670 , 600995 , 496518 , 532380 , 427981 , 625441 , 605365 , 462679 , 593485 );
Copy
4
4.01 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
411534
427981
438052
454460
462679
470403
471620
476692
479950
479965
488238
495407
496518
499089
513839
515443
522216
522249
532380
537670
551473
551525
552370
553609
555091
571726
578301
583384
587212
593485
596796
600995
603919
605365
609083
617672
619828
620475
625441
630457
637444
641322
666370
709848
710275
721230
741855
760602
761941
766342
771281
784110
791209
791216
794482
794908
800524
805269
817675
819766
824164
824552
825291
827653
828228
]
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 (411534 , 427981 , 438052 , 454460 , 462679 , 470403 , 471620 , 476692 , 479950 , 479965 , 488238 , 495407 , 496518 , 499089 , 513839 , 515443 , 522216 , 522249 , 532380 , 537670 , 551473 , 551525 , 552370 , 553609 , 555091 , 571726 , 578301 , 583384 , 587212 , 593485 , 596796 , 600995 , 603919 , 605365 , 609083 , 617672 , 619828 , 620475 , 625441 , 630457 , 637444 , 641322 , 666370 , 709848 , 710275 , 721230 , 741855 , 760602 , 761941 , 766342 , 771281 , 784110 , 791209 , 791216 , 794482 , 794908 , 800524 , 805269 , 817675 , 819766 , 824164 , 824552 , 825291 , 827653 , 828228 );
Copy
5
136.35 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
411534
427981
438052
454460
462679
470403
471620
476692
479950
479965
488238
495407
496518
499089
513839
515443
522216
522249
532380
537670
551473
551525
552370
553609
555091
571726
578301
583384
587212
593485
596796
600995
603919
605365
609083
617672
619828
620475
625441
630457
637444
641322
666370
709848
710275
721230
741855
760602
761941
766342
771281
784110
791209
791216
794482
794908
800524
805269
817675
819766
824164
824552
825291
827653
828228
]
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 (411534 , 427981 , 438052 , 454460 , 462679 , 470403 , 471620 , 476692 , 479950 , 479965 , 488238 , 495407 , 496518 , 499089 , 513839 , 515443 , 522216 , 522249 , 532380 , 537670 , 551473 , 551525 , 552370 , 553609 , 555091 , 571726 , 578301 , 583384 , 587212 , 593485 , 596796 , 600995 , 603919 , 605365 , 609083 , 617672 , 619828 , 620475 , 625441 , 630457 , 637444 , 641322 , 666370 , 709848 , 710275 , 721230 , 741855 , 760602 , 761941 , 766342 , 771281 , 784110 , 791209 , 791216 , 794482 , 794908 , 800524 , 805269 , 817675 , 819766 , 824164 , 824552 , 825291 , 827653 , 828228 );
Copy