3
10.02 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
570951
596292
630034
581021
596769
744327
716008
755095
681135
654414
809295
744336
783790
783810
722649
772133
681115
705934
598456
592518
570887
580303
628393
769733
570943
570956
584192
543497
582262
590946
641070
609753
824408
704969
822339
819096
96118
822421
824212
822775
816754
591706
387020
609721
605485
382382
767022
417772
647882
776484
563060
466238
466840
443772
500453
484342
563063
471073
526884
409948
522909
477223
665768
566688
]
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 (570951 , 596292 , 630034 , 581021 , 596769 , 744327 , 716008 , 755095 , 681135 , 654414 , 809295 , 744336 , 783790 , 783810 , 722649 , 772133 , 681115 , 705934 , 598456 , 592518 , 570887 , 580303 , 628393 , 769733 , 570943 , 570956 , 584192 , 543497 , 582262 , 590946 , 641070 , 609753 , 824408 , 704969 , 822339 , 819096 , 96118 , 822421 , 824212 , 822775 , 816754 , 591706 , 387020 , 609721 , 605485 , 382382 , 767022 , 417772 , 647882 , 776484 , 563060 , 466238 , 466840 , 443772 , 500453 , 484342 , 563063 , 471073 , 526884 , 409948 , 522909 , 477223 , 665768 , 566688 );
Copy
4
2.47 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
96118
382382
387020
409948
417772
443772
466238
466840
471073
477223
484342
500453
522909
526884
543497
563060
563063
566688
570887
570943
570951
570956
580303
581021
582262
584192
590946
591706
592518
596292
596769
598456
605485
609721
609753
628393
630034
641070
647882
654414
665768
681115
681135
704969
705934
716008
722649
744327
744336
755095
767022
769733
776484
783790
783810
809295
816754
819096
822339
822421
822775
824212
824408
]
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 (96118 , 382382 , 387020 , 409948 , 417772 , 443772 , 466238 , 466840 , 471073 , 477223 , 484342 , 500453 , 522909 , 526884 , 543497 , 563060 , 563063 , 566688 , 570887 , 570943 , 570951 , 570956 , 580303 , 581021 , 582262 , 584192 , 590946 , 591706 , 592518 , 596292 , 596769 , 598456 , 605485 , 609721 , 609753 , 628393 , 630034 , 641070 , 647882 , 654414 , 665768 , 681115 , 681135 , 704969 , 705934 , 716008 , 722649 , 744327 , 744336 , 755095 , 767022 , 769733 , 776484 , 783790 , 783810 , 809295 , 816754 , 819096 , 822339 , 822421 , 822775 , 824212 , 824408 );
Copy
5
105.17 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
96118
382382
387020
409948
417772
443772
466238
466840
471073
477223
484342
500453
522909
526884
543497
563060
563063
566688
570887
570943
570951
570956
580303
581021
582262
584192
590946
591706
592518
596292
596769
598456
605485
609721
609753
628393
630034
641070
647882
654414
665768
681115
681135
704969
705934
716008
722649
744327
744336
755095
767022
769733
776484
783790
783810
809295
816754
819096
822339
822421
822775
824212
824408
]
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 (96118 , 382382 , 387020 , 409948 , 417772 , 443772 , 466238 , 466840 , 471073 , 477223 , 484342 , 500453 , 522909 , 526884 , 543497 , 563060 , 563063 , 566688 , 570887 , 570943 , 570951 , 570956 , 580303 , 581021 , 582262 , 584192 , 590946 , 591706 , 592518 , 596292 , 596769 , 598456 , 605485 , 609721 , 609753 , 628393 , 630034 , 641070 , 647882 , 654414 , 665768 , 681115 , 681135 , 704969 , 705934 , 716008 , 722649 , 744327 , 744336 , 755095 , 767022 , 769733 , 776484 , 783790 , 783810 , 809295 , 816754 , 819096 , 822339 , 822421 , 822775 , 824212 , 824408 );
Copy