3
9.68 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
459908
519569
418714
503095
529204
528054
525767
589265
727023
481362
438410
797636
612080
807770
443180
536940
543879
556128
591947
809576
464400
640755
456606
405891
507710
481788
671401
635920
449891
576262
578451
115206
553320
571735
801790
755713
494724
522926
524029
503967
512876
513816
519531
559222
541479
583617
668807
571261
592619
604790
458331
535411
482622
529213
569194
520793
552955
467066
529373
589023
499594
516874
430071
596168
]
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 (459908 , 519569 , 418714 , 503095 , 529204 , 528054 , 525767 , 589265 , 727023 , 481362 , 438410 , 797636 , 612080 , 807770 , 443180 , 536940 , 543879 , 556128 , 591947 , 809576 , 464400 , 640755 , 456606 , 405891 , 507710 , 481788 , 671401 , 635920 , 449891 , 576262 , 578451 , 115206 , 553320 , 571735 , 801790 , 755713 , 494724 , 522926 , 524029 , 503967 , 512876 , 513816 , 519531 , 559222 , 541479 , 583617 , 668807 , 571261 , 592619 , 604790 , 458331 , 535411 , 482622 , 529213 , 569194 , 520793 , 552955 , 467066 , 529373 , 589023 , 499594 , 516874 , 430071 , 596168 );
Copy
4
2.79 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
115206
405891
418714
430071
438410
443180
449891
456606
458331
459908
464400
467066
481362
481788
482622
494724
499594
503095
503967
507710
512876
513816
516874
519531
519569
520793
522926
524029
525767
528054
529204
529213
529373
535411
536940
541479
543879
552955
553320
556128
559222
569194
571261
571735
576262
578451
583617
589023
589265
591947
592619
596168
604790
612080
635920
640755
668807
671401
727023
755713
797636
801790
807770
809576
]
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 (115206 , 405891 , 418714 , 430071 , 438410 , 443180 , 449891 , 456606 , 458331 , 459908 , 464400 , 467066 , 481362 , 481788 , 482622 , 494724 , 499594 , 503095 , 503967 , 507710 , 512876 , 513816 , 516874 , 519531 , 519569 , 520793 , 522926 , 524029 , 525767 , 528054 , 529204 , 529213 , 529373 , 535411 , 536940 , 541479 , 543879 , 552955 , 553320 , 556128 , 559222 , 569194 , 571261 , 571735 , 576262 , 578451 , 583617 , 589023 , 589265 , 591947 , 592619 , 596168 , 604790 , 612080 , 635920 , 640755 , 668807 , 671401 , 727023 , 755713 , 797636 , 801790 , 807770 , 809576 );
Copy
5
100.97 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
115206
405891
418714
430071
438410
443180
449891
456606
458331
459908
464400
467066
481362
481788
482622
494724
499594
503095
503967
507710
512876
513816
516874
519531
519569
520793
522926
524029
525767
528054
529204
529213
529373
535411
536940
541479
543879
552955
553320
556128
559222
569194
571261
571735
576262
578451
583617
589023
589265
591947
592619
596168
604790
612080
635920
640755
668807
671401
727023
755713
797636
801790
807770
809576
]
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 (115206 , 405891 , 418714 , 430071 , 438410 , 443180 , 449891 , 456606 , 458331 , 459908 , 464400 , 467066 , 481362 , 481788 , 482622 , 494724 , 499594 , 503095 , 503967 , 507710 , 512876 , 513816 , 516874 , 519531 , 519569 , 520793 , 522926 , 524029 , 525767 , 528054 , 529204 , 529213 , 529373 , 535411 , 536940 , 541479 , 543879 , 552955 , 553320 , 556128 , 559222 , 569194 , 571261 , 571735 , 576262 , 578451 , 583617 , 589023 , 589265 , 591947 , 592619 , 596168 , 604790 , 612080 , 635920 , 640755 , 668807 , 671401 , 727023 , 755713 , 797636 , 801790 , 807770 , 809576 );
Copy