4
10.67 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
738323
743608
760825
752965
764983
710457
761480
794948
730632
787225
710007
791519
755107
781175
795059
746853
627341
767428
734661
723165
801490
800063
795028
605410
800176
810919
450155
385083
605681
811138
801504
733025
724437
715807
610113
640304
752505
805635
645781
587749
730946
740978
685051
812387
799616
804081
783112
785000
733143
759590
612429
500687
571359
811019
533195
568875
500989
488101
715350
724266
649384
799536
787875
452711
512129
749899
549639
451664
439858
639793
588877
635783
]
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 (738323 , 743608 , 760825 , 752965 , 764983 , 710457 , 761480 , 794948 , 730632 , 787225 , 710007 , 791519 , 755107 , 781175 , 795059 , 746853 , 627341 , 767428 , 734661 , 723165 , 801490 , 800063 , 795028 , 605410 , 800176 , 810919 , 450155 , 385083 , 605681 , 811138 , 801504 , 733025 , 724437 , 715807 , 610113 , 640304 , 752505 , 805635 , 645781 , 587749 , 730946 , 740978 , 685051 , 812387 , 799616 , 804081 , 783112 , 785000 , 733143 , 759590 , 612429 , 500687 , 571359 , 811019 , 533195 , 568875 , 500989 , 488101 , 715350 , 724266 , 649384 , 799536 , 787875 , 452711 , 512129 , 749899 , 549639 , 451664 , 439858 , 639793 , 588877 , 635783 );
Copy
5
2.23 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
385083
439858
450155
451664
452711
488101
500687
500989
512129
533195
549639
568875
571359
587749
588877
605410
605681
610113
612429
627341
635783
639793
640304
645781
649384
685051
710007
710457
715350
715807
723165
724266
724437
730632
730946
733025
733143
734661
738323
740978
743608
746853
749899
752505
752965
755107
759590
760825
761480
764983
767428
781175
783112
785000
787225
787875
791519
794948
795028
795059
799536
799616
800063
800176
801490
801504
804081
805635
810919
811019
811138
812387
]
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 (385083 , 439858 , 450155 , 451664 , 452711 , 488101 , 500687 , 500989 , 512129 , 533195 , 549639 , 568875 , 571359 , 587749 , 588877 , 605410 , 605681 , 610113 , 612429 , 627341 , 635783 , 639793 , 640304 , 645781 , 649384 , 685051 , 710007 , 710457 , 715350 , 715807 , 723165 , 724266 , 724437 , 730632 , 730946 , 733025 , 733143 , 734661 , 738323 , 740978 , 743608 , 746853 , 749899 , 752505 , 752965 , 755107 , 759590 , 760825 , 761480 , 764983 , 767428 , 781175 , 783112 , 785000 , 787225 , 787875 , 791519 , 794948 , 795028 , 795059 , 799536 , 799616 , 800063 , 800176 , 801490 , 801504 , 804081 , 805635 , 810919 , 811019 , 811138 , 812387 );
Copy
6
111.05 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
385083
439858
450155
451664
452711
488101
500687
500989
512129
533195
549639
568875
571359
587749
588877
605410
605681
610113
612429
627341
635783
639793
640304
645781
649384
685051
710007
710457
715350
715807
723165
724266
724437
730632
730946
733025
733143
734661
738323
740978
743608
746853
749899
752505
752965
755107
759590
760825
761480
764983
767428
781175
783112
785000
787225
787875
791519
794948
795028
795059
799536
799616
800063
800176
801490
801504
804081
805635
810919
811019
811138
812387
]
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 (385083 , 439858 , 450155 , 451664 , 452711 , 488101 , 500687 , 500989 , 512129 , 533195 , 549639 , 568875 , 571359 , 587749 , 588877 , 605410 , 605681 , 610113 , 612429 , 627341 , 635783 , 639793 , 640304 , 645781 , 649384 , 685051 , 710007 , 710457 , 715350 , 715807 , 723165 , 724266 , 724437 , 730632 , 730946 , 733025 , 733143 , 734661 , 738323 , 740978 , 743608 , 746853 , 749899 , 752505 , 752965 , 755107 , 759590 , 760825 , 761480 , 764983 , 767428 , 781175 , 783112 , 785000 , 787225 , 787875 , 791519 , 794948 , 795028 , 795059 , 799536 , 799616 , 800063 , 800176 , 801490 , 801504 , 804081 , 805635 , 810919 , 811019 , 811138 , 812387 );
Copy