3
11.98 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
788918
637133
656533
725139
817761
681635
610144
794120
634116
530028
632645
765092
635258
683404
635202
604464
794560
774243
615716
530696
603792
632663
584504
753962
451161
604466
606725
807725
550314
419342
630292
461756
577265
788562
596479
525063
415097
702634
438638
639797
458013
666850
733573
601101
580180
599908
542590
599957
468592
530744
647994
600206
632635
599955
419862
533372
600019
647972
639716
560197
545611
632261
634780
599880
533746
]
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 (788918 , 637133 , 656533 , 725139 , 817761 , 681635 , 610144 , 794120 , 634116 , 530028 , 632645 , 765092 , 635258 , 683404 , 635202 , 604464 , 794560 , 774243 , 615716 , 530696 , 603792 , 632663 , 584504 , 753962 , 451161 , 604466 , 606725 , 807725 , 550314 , 419342 , 630292 , 461756 , 577265 , 788562 , 596479 , 525063 , 415097 , 702634 , 438638 , 639797 , 458013 , 666850 , 733573 , 601101 , 580180 , 599908 , 542590 , 599957 , 468592 , 530744 , 647994 , 600206 , 632635 , 599955 , 419862 , 533372 , 600019 , 647972 , 639716 , 560197 , 545611 , 632261 , 634780 , 599880 , 533746 );
Copy
4
2.30 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
415097
419342
419862
438638
451161
458013
461756
468592
525063
530028
530696
530744
533372
533746
542590
545611
550314
560197
577265
580180
584504
596479
599880
599908
599955
599957
600019
600206
601101
603792
604464
604466
606725
610144
615716
630292
632261
632635
632645
632663
634116
634780
635202
635258
637133
639716
639797
647972
647994
656533
666850
681635
683404
702634
725139
733573
753962
765092
774243
788562
788918
794120
794560
807725
817761
]
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 (415097 , 419342 , 419862 , 438638 , 451161 , 458013 , 461756 , 468592 , 525063 , 530028 , 530696 , 530744 , 533372 , 533746 , 542590 , 545611 , 550314 , 560197 , 577265 , 580180 , 584504 , 596479 , 599880 , 599908 , 599955 , 599957 , 600019 , 600206 , 601101 , 603792 , 604464 , 604466 , 606725 , 610144 , 615716 , 630292 , 632261 , 632635 , 632645 , 632663 , 634116 , 634780 , 635202 , 635258 , 637133 , 639716 , 639797 , 647972 , 647994 , 656533 , 666850 , 681635 , 683404 , 702634 , 725139 , 733573 , 753962 , 765092 , 774243 , 788562 , 788918 , 794120 , 794560 , 807725 , 817761 );
Copy
5
104.01 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
415097
419342
419862
438638
451161
458013
461756
468592
525063
530028
530696
530744
533372
533746
542590
545611
550314
560197
577265
580180
584504
596479
599880
599908
599955
599957
600019
600206
601101
603792
604464
604466
606725
610144
615716
630292
632261
632635
632645
632663
634116
634780
635202
635258
637133
639716
639797
647972
647994
656533
666850
681635
683404
702634
725139
733573
753962
765092
774243
788562
788918
794120
794560
807725
817761
]
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 (415097 , 419342 , 419862 , 438638 , 451161 , 458013 , 461756 , 468592 , 525063 , 530028 , 530696 , 530744 , 533372 , 533746 , 542590 , 545611 , 550314 , 560197 , 577265 , 580180 , 584504 , 596479 , 599880 , 599908 , 599955 , 599957 , 600019 , 600206 , 601101 , 603792 , 604464 , 604466 , 606725 , 610144 , 615716 , 630292 , 632261 , 632635 , 632645 , 632663 , 634116 , 634780 , 635202 , 635258 , 637133 , 639716 , 639797 , 647972 , 647994 , 656533 , 666850 , 681635 , 683404 , 702634 , 725139 , 733573 , 753962 , 765092 , 774243 , 788562 , 788918 , 794120 , 794560 , 807725 , 817761 );
Copy