3
7.77 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
393430
807456
530109
722551
722511
817040
709337
601520
626563
807492
815612
775573
812404
819253
826508
818901
714364
541200
397174
529518
539157
552298
649992
788302
604977
544794
558272
722480
630360
770871
775890
402534
455215
710266
551070
556042
746537
433581
704928
551078
563052
612067
807981
622710
820529
561125
676179
800030
754224
724182
709215
783992
413567
463621
475465
561415
562938
780517
792648
398027
427199
500463
612439
466165
752158
532735
648817
587461
]
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 (393430 , 807456 , 530109 , 722551 , 722511 , 817040 , 709337 , 601520 , 626563 , 807492 , 815612 , 775573 , 812404 , 819253 , 826508 , 818901 , 714364 , 541200 , 397174 , 529518 , 539157 , 552298 , 649992 , 788302 , 604977 , 544794 , 558272 , 722480 , 630360 , 770871 , 775890 , 402534 , 455215 , 710266 , 551070 , 556042 , 746537 , 433581 , 704928 , 551078 , 563052 , 612067 , 807981 , 622710 , 820529 , 561125 , 676179 , 800030 , 754224 , 724182 , 709215 , 783992 , 413567 , 463621 , 475465 , 561415 , 562938 , 780517 , 792648 , 398027 , 427199 , 500463 , 612439 , 466165 , 752158 , 532735 , 648817 , 587461 );
Copy
4
2.64 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
393430
397174
398027
402534
413567
427199
433581
455215
463621
466165
475465
500463
529518
530109
532735
539157
541200
544794
551070
551078
552298
556042
558272
561125
561415
562938
563052
587461
601520
604977
612067
612439
622710
626563
630360
648817
649992
676179
704928
709215
709337
710266
714364
722480
722511
722551
724182
746537
752158
754224
770871
775573
775890
780517
783992
788302
792648
800030
807456
807492
807981
812404
815612
817040
818901
819253
820529
826508
]
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 (393430 , 397174 , 398027 , 402534 , 413567 , 427199 , 433581 , 455215 , 463621 , 466165 , 475465 , 500463 , 529518 , 530109 , 532735 , 539157 , 541200 , 544794 , 551070 , 551078 , 552298 , 556042 , 558272 , 561125 , 561415 , 562938 , 563052 , 587461 , 601520 , 604977 , 612067 , 612439 , 622710 , 626563 , 630360 , 648817 , 649992 , 676179 , 704928 , 709215 , 709337 , 710266 , 714364 , 722480 , 722511 , 722551 , 724182 , 746537 , 752158 , 754224 , 770871 , 775573 , 775890 , 780517 , 783992 , 788302 , 792648 , 800030 , 807456 , 807492 , 807981 , 812404 , 815612 , 817040 , 818901 , 819253 , 820529 , 826508 );
Copy
5
96.89 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
393430
397174
398027
402534
413567
427199
433581
455215
463621
466165
475465
500463
529518
530109
532735
539157
541200
544794
551070
551078
552298
556042
558272
561125
561415
562938
563052
587461
601520
604977
612067
612439
622710
626563
630360
648817
649992
676179
704928
709215
709337
710266
714364
722480
722511
722551
724182
746537
752158
754224
770871
775573
775890
780517
783992
788302
792648
800030
807456
807492
807981
812404
815612
817040
818901
819253
820529
826508
]
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 (393430 , 397174 , 398027 , 402534 , 413567 , 427199 , 433581 , 455215 , 463621 , 466165 , 475465 , 500463 , 529518 , 530109 , 532735 , 539157 , 541200 , 544794 , 551070 , 551078 , 552298 , 556042 , 558272 , 561125 , 561415 , 562938 , 563052 , 587461 , 601520 , 604977 , 612067 , 612439 , 622710 , 626563 , 630360 , 648817 , 649992 , 676179 , 704928 , 709215 , 709337 , 710266 , 714364 , 722480 , 722511 , 722551 , 724182 , 746537 , 752158 , 754224 , 770871 , 775573 , 775890 , 780517 , 783992 , 788302 , 792648 , 800030 , 807456 , 807492 , 807981 , 812404 , 815612 , 817040 , 818901 , 819253 , 820529 , 826508 );
Copy