3
11.52 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
397161
803363
712026
420474
824120
815874
686093
805385
783322
812639
795180
796440
397014
447094
382720
815958
556815
753039
607345
816545
801206
755388
817878
555153
596134
585155
733178
456030
493156
688554
618404
790813
814178
460156
687144
587813
729565
756000
442198
815299
815559
573931
716246
777043
800055
513435
603215
786525
756406
551125
615851
615748
463712
471631
584752
589573
615979
622714
517068
562059
668549
478832
421566
520354
562001
475828
642016
419370
517008
525651
]
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 (397161 , 803363 , 712026 , 420474 , 824120 , 815874 , 686093 , 805385 , 783322 , 812639 , 795180 , 796440 , 397014 , 447094 , 382720 , 815958 , 556815 , 753039 , 607345 , 816545 , 801206 , 755388 , 817878 , 555153 , 596134 , 585155 , 733178 , 456030 , 493156 , 688554 , 618404 , 790813 , 814178 , 460156 , 687144 , 587813 , 729565 , 756000 , 442198 , 815299 , 815559 , 573931 , 716246 , 777043 , 800055 , 513435 , 603215 , 786525 , 756406 , 551125 , 615851 , 615748 , 463712 , 471631 , 584752 , 589573 , 615979 , 622714 , 517068 , 562059 , 668549 , 478832 , 421566 , 520354 , 562001 , 475828 , 642016 , 419370 , 517008 , 525651 );
Copy
4
2.39 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
382720
397014
397161
419370
420474
421566
442198
447094
456030
460156
463712
471631
475828
478832
493156
513435
517008
517068
520354
525651
551125
555153
556815
562001
562059
573931
584752
585155
587813
589573
596134
603215
607345
615748
615851
615979
618404
622714
642016
668549
686093
687144
688554
712026
716246
729565
733178
753039
755388
756000
756406
777043
783322
786525
790813
795180
796440
800055
801206
803363
805385
812639
814178
815299
815559
815874
815958
816545
817878
824120
]
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 (382720 , 397014 , 397161 , 419370 , 420474 , 421566 , 442198 , 447094 , 456030 , 460156 , 463712 , 471631 , 475828 , 478832 , 493156 , 513435 , 517008 , 517068 , 520354 , 525651 , 551125 , 555153 , 556815 , 562001 , 562059 , 573931 , 584752 , 585155 , 587813 , 589573 , 596134 , 603215 , 607345 , 615748 , 615851 , 615979 , 618404 , 622714 , 642016 , 668549 , 686093 , 687144 , 688554 , 712026 , 716246 , 729565 , 733178 , 753039 , 755388 , 756000 , 756406 , 777043 , 783322 , 786525 , 790813 , 795180 , 796440 , 800055 , 801206 , 803363 , 805385 , 812639 , 814178 , 815299 , 815559 , 815874 , 815958 , 816545 , 817878 , 824120 );
Copy
5
109.18 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
382720
397014
397161
419370
420474
421566
442198
447094
456030
460156
463712
471631
475828
478832
493156
513435
517008
517068
520354
525651
551125
555153
556815
562001
562059
573931
584752
585155
587813
589573
596134
603215
607345
615748
615851
615979
618404
622714
642016
668549
686093
687144
688554
712026
716246
729565
733178
753039
755388
756000
756406
777043
783322
786525
790813
795180
796440
800055
801206
803363
805385
812639
814178
815299
815559
815874
815958
816545
817878
824120
]
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 (382720 , 397014 , 397161 , 419370 , 420474 , 421566 , 442198 , 447094 , 456030 , 460156 , 463712 , 471631 , 475828 , 478832 , 493156 , 513435 , 517008 , 517068 , 520354 , 525651 , 551125 , 555153 , 556815 , 562001 , 562059 , 573931 , 584752 , 585155 , 587813 , 589573 , 596134 , 603215 , 607345 , 615748 , 615851 , 615979 , 618404 , 622714 , 642016 , 668549 , 686093 , 687144 , 688554 , 712026 , 716246 , 729565 , 733178 , 753039 , 755388 , 756000 , 756406 , 777043 , 783322 , 786525 , 790813 , 795180 , 796440 , 800055 , 801206 , 803363 , 805385 , 812639 , 814178 , 815299 , 815559 , 815874 , 815958 , 816545 , 817878 , 824120 );
Copy