3
9.92 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
625320
625325
574562
780244
749057
765211
756655
786820
734731
756659
468978
468991
694044
612137
791404
756634
768905
734713
449843
586558
777774
791679
709082
790469
537932
487498
810962
760610
538971
527123
599885
490067
517575
530650
463034
529168
823109
827864
565670
805215
48179
717732
451309
443264
447711
714813
492266
441664
441662
681211
809711
448468
450567
450600
538332
558841
574803
446450
770495
446197
510847
420438
451780
491658
524345
421128
486283
419061
560190
]
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 (625320 , 625325 , 574562 , 780244 , 749057 , 765211 , 756655 , 786820 , 734731 , 756659 , 468978 , 468991 , 694044 , 612137 , 791404 , 756634 , 768905 , 734713 , 449843 , 586558 , 777774 , 791679 , 709082 , 790469 , 537932 , 487498 , 810962 , 760610 , 538971 , 527123 , 599885 , 490067 , 517575 , 530650 , 463034 , 529168 , 823109 , 827864 , 565670 , 805215 , 48179 , 717732 , 451309 , 443264 , 447711 , 714813 , 492266 , 441664 , 441662 , 681211 , 809711 , 448468 , 450567 , 450600 , 538332 , 558841 , 574803 , 446450 , 770495 , 446197 , 510847 , 420438 , 451780 , 491658 , 524345 , 421128 , 486283 , 419061 , 560190 );
Copy
4
2.62 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
48179
419061
420438
421128
441662
441664
443264
446197
446450
447711
448468
449843
450567
450600
451309
451780
463034
468978
468991
486283
487498
490067
491658
492266
510847
517575
524345
527123
529168
530650
537932
538332
538971
558841
560190
565670
574562
574803
586558
599885
612137
625320
625325
681211
694044
709082
714813
717732
734713
734731
749057
756634
756655
756659
760610
765211
768905
770495
777774
780244
786820
790469
791404
791679
805215
809711
810962
823109
827864
]
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 (48179 , 419061 , 420438 , 421128 , 441662 , 441664 , 443264 , 446197 , 446450 , 447711 , 448468 , 449843 , 450567 , 450600 , 451309 , 451780 , 463034 , 468978 , 468991 , 486283 , 487498 , 490067 , 491658 , 492266 , 510847 , 517575 , 524345 , 527123 , 529168 , 530650 , 537932 , 538332 , 538971 , 558841 , 560190 , 565670 , 574562 , 574803 , 586558 , 599885 , 612137 , 625320 , 625325 , 681211 , 694044 , 709082 , 714813 , 717732 , 734713 , 734731 , 749057 , 756634 , 756655 , 756659 , 760610 , 765211 , 768905 , 770495 , 777774 , 780244 , 786820 , 790469 , 791404 , 791679 , 805215 , 809711 , 810962 , 823109 , 827864 );
Copy
5
115.49 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
48179
419061
420438
421128
441662
441664
443264
446197
446450
447711
448468
449843
450567
450600
451309
451780
463034
468978
468991
486283
487498
490067
491658
492266
510847
517575
524345
527123
529168
530650
537932
538332
538971
558841
560190
565670
574562
574803
586558
599885
612137
625320
625325
681211
694044
709082
714813
717732
734713
734731
749057
756634
756655
756659
760610
765211
768905
770495
777774
780244
786820
790469
791404
791679
805215
809711
810962
823109
827864
]
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 (48179 , 419061 , 420438 , 421128 , 441662 , 441664 , 443264 , 446197 , 446450 , 447711 , 448468 , 449843 , 450567 , 450600 , 451309 , 451780 , 463034 , 468978 , 468991 , 486283 , 487498 , 490067 , 491658 , 492266 , 510847 , 517575 , 524345 , 527123 , 529168 , 530650 , 537932 , 538332 , 538971 , 558841 , 560190 , 565670 , 574562 , 574803 , 586558 , 599885 , 612137 , 625320 , 625325 , 681211 , 694044 , 709082 , 714813 , 717732 , 734713 , 734731 , 749057 , 756634 , 756655 , 756659 , 760610 , 765211 , 768905 , 770495 , 777774 , 780244 , 786820 , 790469 , 791404 , 791679 , 805215 , 809711 , 810962 , 823109 , 827864 );
Copy