3
11.46 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
597227
628365
627804
628368
750538
733855
627813
632565
464727
584539
577409
544366
679810
680185
670758
680255
666883
680116
680118
632689
637080
640797
800588
748957
637592
820759
550705
645019
648543
666535
702168
680159
555805
580264
637093
637086
631202
627808
701310
458555
541699
550207
556323
542864
702163
582179
586587
634769
631196
545389
541853
545409
545600
565276
707391
680186
680176
601856
632706
545418
675008
639741
633435
623337
545480
]
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 (597227 , 628365 , 627804 , 628368 , 750538 , 733855 , 627813 , 632565 , 464727 , 584539 , 577409 , 544366 , 679810 , 680185 , 670758 , 680255 , 666883 , 680116 , 680118 , 632689 , 637080 , 640797 , 800588 , 748957 , 637592 , 820759 , 550705 , 645019 , 648543 , 666535 , 702168 , 680159 , 555805 , 580264 , 637093 , 637086 , 631202 , 627808 , 701310 , 458555 , 541699 , 550207 , 556323 , 542864 , 702163 , 582179 , 586587 , 634769 , 631196 , 545389 , 541853 , 545409 , 545600 , 565276 , 707391 , 680186 , 680176 , 601856 , 632706 , 545418 , 675008 , 639741 , 633435 , 623337 , 545480 );
Copy
4
2.48 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
458555
464727
541699
541853
542864
544366
545389
545409
545418
545480
545600
550207
550705
555805
556323
565276
577409
580264
582179
584539
586587
597227
601856
623337
627804
627808
627813
628365
628368
631196
631202
632565
632689
632706
633435
634769
637080
637086
637093
637592
639741
640797
645019
648543
666535
666883
670758
675008
679810
680116
680118
680159
680176
680185
680186
680255
701310
702163
702168
707391
733855
748957
750538
800588
820759
]
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 (458555 , 464727 , 541699 , 541853 , 542864 , 544366 , 545389 , 545409 , 545418 , 545480 , 545600 , 550207 , 550705 , 555805 , 556323 , 565276 , 577409 , 580264 , 582179 , 584539 , 586587 , 597227 , 601856 , 623337 , 627804 , 627808 , 627813 , 628365 , 628368 , 631196 , 631202 , 632565 , 632689 , 632706 , 633435 , 634769 , 637080 , 637086 , 637093 , 637592 , 639741 , 640797 , 645019 , 648543 , 666535 , 666883 , 670758 , 675008 , 679810 , 680116 , 680118 , 680159 , 680176 , 680185 , 680186 , 680255 , 701310 , 702163 , 702168 , 707391 , 733855 , 748957 , 750538 , 800588 , 820759 );
Copy
5
501.53 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
458555
464727
541699
541853
542864
544366
545389
545409
545418
545480
545600
550207
550705
555805
556323
565276
577409
580264
582179
584539
586587
597227
601856
623337
627804
627808
627813
628365
628368
631196
631202
632565
632689
632706
633435
634769
637080
637086
637093
637592
639741
640797
645019
648543
666535
666883
670758
675008
679810
680116
680118
680159
680176
680185
680186
680255
701310
702163
702168
707391
733855
748957
750538
800588
820759
]
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 (458555 , 464727 , 541699 , 541853 , 542864 , 544366 , 545389 , 545409 , 545418 , 545480 , 545600 , 550207 , 550705 , 555805 , 556323 , 565276 , 577409 , 580264 , 582179 , 584539 , 586587 , 597227 , 601856 , 623337 , 627804 , 627808 , 627813 , 628365 , 628368 , 631196 , 631202 , 632565 , 632689 , 632706 , 633435 , 634769 , 637080 , 637086 , 637093 , 637592 , 639741 , 640797 , 645019 , 648543 , 666535 , 666883 , 670758 , 675008 , 679810 , 680116 , 680118 , 680159 , 680176 , 680185 , 680186 , 680255 , 701310 , 702163 , 702168 , 707391 , 733855 , 748957 , 750538 , 800588 , 820759 );
Copy