3
18.13 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
432890
606900
746335
771924
810576
817760
457086
446220
727614
793727
727887
790798
825220
767544
797547
722135
327378
724555
726196
814580
819179
781594
810249
781619
775022
811468
724501
437946
824915
810251
810623
810578
787593
769601
771696
730299
826245
801650
775440
739624
740053
783749
743799
457488
814516
739552
600669
799523
752939
767952
750398
764224
628071
796581
426455
444326
422305
463067
578584
665916
600767
806760
753211
422307
816249
507937
810229
809894
516998
529527
568035
537249
475923
478966
497935
]
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 (432890 , 606900 , 746335 , 771924 , 810576 , 817760 , 457086 , 446220 , 727614 , 793727 , 727887 , 790798 , 825220 , 767544 , 797547 , 722135 , 327378 , 724555 , 726196 , 814580 , 819179 , 781594 , 810249 , 781619 , 775022 , 811468 , 724501 , 437946 , 824915 , 810251 , 810623 , 810578 , 787593 , 769601 , 771696 , 730299 , 826245 , 801650 , 775440 , 739624 , 740053 , 783749 , 743799 , 457488 , 814516 , 739552 , 600669 , 799523 , 752939 , 767952 , 750398 , 764224 , 628071 , 796581 , 426455 , 444326 , 422305 , 463067 , 578584 , 665916 , 600767 , 806760 , 753211 , 422307 , 816249 , 507937 , 810229 , 809894 , 516998 , 529527 , 568035 , 537249 , 475923 , 478966 , 497935 );
Copy
4
3.51 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
327378
422305
422307
426455
432890
437946
444326
446220
457086
457488
463067
475923
478966
497935
507937
516998
529527
537249
568035
578584
600669
600767
606900
628071
665916
722135
724501
724555
726196
727614
727887
730299
739552
739624
740053
743799
746335
750398
752939
753211
764224
767544
767952
771696
771924
775022
775440
781594
781619
783749
787593
790798
793727
796581
797547
799523
801650
806760
809894
810229
810249
810251
810576
810578
810623
811468
814516
814580
816249
817760
819179
824915
825220
826245
]
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 (327378 , 422305 , 422307 , 426455 , 432890 , 437946 , 444326 , 446220 , 457086 , 457488 , 463067 , 475923 , 478966 , 497935 , 507937 , 516998 , 529527 , 537249 , 568035 , 578584 , 600669 , 600767 , 606900 , 628071 , 665916 , 722135 , 724501 , 724555 , 726196 , 727614 , 727887 , 730299 , 739552 , 739624 , 740053 , 743799 , 746335 , 750398 , 752939 , 753211 , 764224 , 767544 , 767952 , 771696 , 771924 , 775022 , 775440 , 781594 , 781619 , 783749 , 787593 , 790798 , 793727 , 796581 , 797547 , 799523 , 801650 , 806760 , 809894 , 810229 , 810249 , 810251 , 810576 , 810578 , 810623 , 811468 , 814516 , 814580 , 816249 , 817760 , 819179 , 824915 , 825220 , 826245 );
Copy
5
91.88 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
327378
422305
422307
426455
432890
437946
444326
446220
457086
457488
463067
475923
478966
497935
507937
516998
529527
537249
568035
578584
600669
600767
606900
628071
665916
722135
724501
724555
726196
727614
727887
730299
739552
739624
740053
743799
746335
750398
752939
753211
764224
767544
767952
771696
771924
775022
775440
781594
781619
783749
787593
790798
793727
796581
797547
799523
801650
806760
809894
810229
810249
810251
810576
810578
810623
811468
814516
814580
816249
817760
819179
824915
825220
826245
]
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 (327378 , 422305 , 422307 , 426455 , 432890 , 437946 , 444326 , 446220 , 457086 , 457488 , 463067 , 475923 , 478966 , 497935 , 507937 , 516998 , 529527 , 537249 , 568035 , 578584 , 600669 , 600767 , 606900 , 628071 , 665916 , 722135 , 724501 , 724555 , 726196 , 727614 , 727887 , 730299 , 739552 , 739624 , 740053 , 743799 , 746335 , 750398 , 752939 , 753211 , 764224 , 767544 , 767952 , 771696 , 771924 , 775022 , 775440 , 781594 , 781619 , 783749 , 787593 , 790798 , 793727 , 796581 , 797547 , 799523 , 801650 , 806760 , 809894 , 810229 , 810249 , 810251 , 810576 , 810578 , 810623 , 811468 , 814516 , 814580 , 816249 , 817760 , 819179 , 824915 , 825220 , 826245 );
Copy