3
10.12 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
692456
624775
827575
550958
715522
827969
562590
807667
798876
544661
633842
544649
732592
442188
477461
520039
572219
539846
585754
726842
539851
550875
530867
551016
802063
732640
588404
527782
530907
418897
475653
485582
550352
530318
771527
824233
563638
604706
617373
539839
530873
586245
481815
566431
502381
575338
803784
442836
465247
504171
525980
562592
586442
605007
733364
515728
574803
442596
507182
493361
442194
653052
535084
]
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 (692456 , 624775 , 827575 , 550958 , 715522 , 827969 , 562590 , 807667 , 798876 , 544661 , 633842 , 544649 , 732592 , 442188 , 477461 , 520039 , 572219 , 539846 , 585754 , 726842 , 539851 , 550875 , 530867 , 551016 , 802063 , 732640 , 588404 , 527782 , 530907 , 418897 , 475653 , 485582 , 550352 , 530318 , 771527 , 824233 , 563638 , 604706 , 617373 , 539839 , 530873 , 586245 , 481815 , 566431 , 502381 , 575338 , 803784 , 442836 , 465247 , 504171 , 525980 , 562592 , 586442 , 605007 , 733364 , 515728 , 574803 , 442596 , 507182 , 493361 , 442194 , 653052 , 535084 );
Copy
4
2.25 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
418897
442188
442194
442596
442836
465247
475653
477461
481815
485582
493361
502381
504171
507182
515728
520039
525980
527782
530318
530867
530873
530907
535084
539839
539846
539851
544649
544661
550352
550875
550958
551016
562590
562592
563638
566431
572219
574803
575338
585754
586245
586442
588404
604706
605007
617373
624775
633842
653052
692456
715522
726842
732592
732640
733364
771527
798876
802063
803784
807667
824233
827575
827969
]
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 (418897 , 442188 , 442194 , 442596 , 442836 , 465247 , 475653 , 477461 , 481815 , 485582 , 493361 , 502381 , 504171 , 507182 , 515728 , 520039 , 525980 , 527782 , 530318 , 530867 , 530873 , 530907 , 535084 , 539839 , 539846 , 539851 , 544649 , 544661 , 550352 , 550875 , 550958 , 551016 , 562590 , 562592 , 563638 , 566431 , 572219 , 574803 , 575338 , 585754 , 586245 , 586442 , 588404 , 604706 , 605007 , 617373 , 624775 , 633842 , 653052 , 692456 , 715522 , 726842 , 732592 , 732640 , 733364 , 771527 , 798876 , 802063 , 803784 , 807667 , 824233 , 827575 , 827969 );
Copy
5
71.95 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
418897
442188
442194
442596
442836
465247
475653
477461
481815
485582
493361
502381
504171
507182
515728
520039
525980
527782
530318
530867
530873
530907
535084
539839
539846
539851
544649
544661
550352
550875
550958
551016
562590
562592
563638
566431
572219
574803
575338
585754
586245
586442
588404
604706
605007
617373
624775
633842
653052
692456
715522
726842
732592
732640
733364
771527
798876
802063
803784
807667
824233
827575
827969
]
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 (418897 , 442188 , 442194 , 442596 , 442836 , 465247 , 475653 , 477461 , 481815 , 485582 , 493361 , 502381 , 504171 , 507182 , 515728 , 520039 , 525980 , 527782 , 530318 , 530867 , 530873 , 530907 , 535084 , 539839 , 539846 , 539851 , 544649 , 544661 , 550352 , 550875 , 550958 , 551016 , 562590 , 562592 , 563638 , 566431 , 572219 , 574803 , 575338 , 585754 , 586245 , 586442 , 588404 , 604706 , 605007 , 617373 , 624775 , 633842 , 653052 , 692456 , 715522 , 726842 , 732592 , 732640 , 733364 , 771527 , 798876 , 802063 , 803784 , 807667 , 824233 , 827575 , 827969 );
Copy