3
10.78 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
627522
661382
581552
798930
782558
796310
654621
599428
732690
825609
507271
569239
653095
813315
708274
533953
812300
500912
545096
763852
809028
749012
729659
503304
802471
341608
531043
792421
772052
668144
808690
625182
811072
605488
782610
666695
588861
474996
524745
451089
708275
782450
590886
535269
812790
445742
780375
791048
454994
448992
511568
478096
588295
558195
545009
436703
421157
425336
484542
462904
542971
619293
453046
551736
613221
]
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 (627522 , 661382 , 581552 , 798930 , 782558 , 796310 , 654621 , 599428 , 732690 , 825609 , 507271 , 569239 , 653095 , 813315 , 708274 , 533953 , 812300 , 500912 , 545096 , 763852 , 809028 , 749012 , 729659 , 503304 , 802471 , 341608 , 531043 , 792421 , 772052 , 668144 , 808690 , 625182 , 811072 , 605488 , 782610 , 666695 , 588861 , 474996 , 524745 , 451089 , 708275 , 782450 , 590886 , 535269 , 812790 , 445742 , 780375 , 791048 , 454994 , 448992 , 511568 , 478096 , 588295 , 558195 , 545009 , 436703 , 421157 , 425336 , 484542 , 462904 , 542971 , 619293 , 453046 , 551736 , 613221 );
Copy
4
2.27 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
341608
421157
425336
436703
445742
448992
451089
453046
454994
462904
474996
478096
484542
500912
503304
507271
511568
524745
531043
533953
535269
542971
545009
545096
551736
558195
569239
581552
588295
588861
590886
599428
605488
613221
619293
625182
627522
653095
654621
661382
666695
668144
708274
708275
729659
732690
749012
763852
772052
780375
782450
782558
782610
791048
792421
796310
798930
802471
808690
809028
811072
812300
812790
813315
825609
]
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 (341608 , 421157 , 425336 , 436703 , 445742 , 448992 , 451089 , 453046 , 454994 , 462904 , 474996 , 478096 , 484542 , 500912 , 503304 , 507271 , 511568 , 524745 , 531043 , 533953 , 535269 , 542971 , 545009 , 545096 , 551736 , 558195 , 569239 , 581552 , 588295 , 588861 , 590886 , 599428 , 605488 , 613221 , 619293 , 625182 , 627522 , 653095 , 654621 , 661382 , 666695 , 668144 , 708274 , 708275 , 729659 , 732690 , 749012 , 763852 , 772052 , 780375 , 782450 , 782558 , 782610 , 791048 , 792421 , 796310 , 798930 , 802471 , 808690 , 809028 , 811072 , 812300 , 812790 , 813315 , 825609 );
Copy
5
78.67 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
341608
421157
425336
436703
445742
448992
451089
453046
454994
462904
474996
478096
484542
500912
503304
507271
511568
524745
531043
533953
535269
542971
545009
545096
551736
558195
569239
581552
588295
588861
590886
599428
605488
613221
619293
625182
627522
653095
654621
661382
666695
668144
708274
708275
729659
732690
749012
763852
772052
780375
782450
782558
782610
791048
792421
796310
798930
802471
808690
809028
811072
812300
812790
813315
825609
]
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 (341608 , 421157 , 425336 , 436703 , 445742 , 448992 , 451089 , 453046 , 454994 , 462904 , 474996 , 478096 , 484542 , 500912 , 503304 , 507271 , 511568 , 524745 , 531043 , 533953 , 535269 , 542971 , 545009 , 545096 , 551736 , 558195 , 569239 , 581552 , 588295 , 588861 , 590886 , 599428 , 605488 , 613221 , 619293 , 625182 , 627522 , 653095 , 654621 , 661382 , 666695 , 668144 , 708274 , 708275 , 729659 , 732690 , 749012 , 763852 , 772052 , 780375 , 782450 , 782558 , 782610 , 791048 , 792421 , 796310 , 798930 , 802471 , 808690 , 809028 , 811072 , 812300 , 812790 , 813315 , 825609 );
Copy