3
9.42 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
803534
793914
780329
824577
711415
769149
385661
800097
402190
575934
786900
801315
500843
827847
419282
543899
748472
666682
780292
584421
533286
640242
633883
810852
613780
812612
505457
553964
787023
785606
709693
621653
634315
643201
577458
792088
689170
546315
819488
796339
750308
463341
478238
783476
820394
713375
813275
533200
700821
666712
595530
809210
742659
807157
806823
420358
578954
605862
579452
710590
750813
727992
467560
582262
638955
542692
420816
812874
422044
]
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 (803534 , 793914 , 780329 , 824577 , 711415 , 769149 , 385661 , 800097 , 402190 , 575934 , 786900 , 801315 , 500843 , 827847 , 419282 , 543899 , 748472 , 666682 , 780292 , 584421 , 533286 , 640242 , 633883 , 810852 , 613780 , 812612 , 505457 , 553964 , 787023 , 785606 , 709693 , 621653 , 634315 , 643201 , 577458 , 792088 , 689170 , 546315 , 819488 , 796339 , 750308 , 463341 , 478238 , 783476 , 820394 , 713375 , 813275 , 533200 , 700821 , 666712 , 595530 , 809210 , 742659 , 807157 , 806823 , 420358 , 578954 , 605862 , 579452 , 710590 , 750813 , 727992 , 467560 , 582262 , 638955 , 542692 , 420816 , 812874 , 422044 );
Copy
4
2.42 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
385661
402190
419282
420358
420816
422044
463341
467560
478238
500843
505457
533200
533286
542692
543899
546315
553964
575934
577458
578954
579452
582262
584421
595530
605862
613780
621653
633883
634315
638955
640242
643201
666682
666712
689170
700821
709693
710590
711415
713375
727992
742659
748472
750308
750813
769149
780292
780329
783476
785606
786900
787023
792088
793914
796339
800097
801315
803534
806823
807157
809210
810852
812612
812874
813275
819488
820394
824577
827847
]
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 (385661 , 402190 , 419282 , 420358 , 420816 , 422044 , 463341 , 467560 , 478238 , 500843 , 505457 , 533200 , 533286 , 542692 , 543899 , 546315 , 553964 , 575934 , 577458 , 578954 , 579452 , 582262 , 584421 , 595530 , 605862 , 613780 , 621653 , 633883 , 634315 , 638955 , 640242 , 643201 , 666682 , 666712 , 689170 , 700821 , 709693 , 710590 , 711415 , 713375 , 727992 , 742659 , 748472 , 750308 , 750813 , 769149 , 780292 , 780329 , 783476 , 785606 , 786900 , 787023 , 792088 , 793914 , 796339 , 800097 , 801315 , 803534 , 806823 , 807157 , 809210 , 810852 , 812612 , 812874 , 813275 , 819488 , 820394 , 824577 , 827847 );
Copy
5
76.13 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
385661
402190
419282
420358
420816
422044
463341
467560
478238
500843
505457
533200
533286
542692
543899
546315
553964
575934
577458
578954
579452
582262
584421
595530
605862
613780
621653
633883
634315
638955
640242
643201
666682
666712
689170
700821
709693
710590
711415
713375
727992
742659
748472
750308
750813
769149
780292
780329
783476
785606
786900
787023
792088
793914
796339
800097
801315
803534
806823
807157
809210
810852
812612
812874
813275
819488
820394
824577
827847
]
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 (385661 , 402190 , 419282 , 420358 , 420816 , 422044 , 463341 , 467560 , 478238 , 500843 , 505457 , 533200 , 533286 , 542692 , 543899 , 546315 , 553964 , 575934 , 577458 , 578954 , 579452 , 582262 , 584421 , 595530 , 605862 , 613780 , 621653 , 633883 , 634315 , 638955 , 640242 , 643201 , 666682 , 666712 , 689170 , 700821 , 709693 , 710590 , 711415 , 713375 , 727992 , 742659 , 748472 , 750308 , 750813 , 769149 , 780292 , 780329 , 783476 , 785606 , 786900 , 787023 , 792088 , 793914 , 796339 , 800097 , 801315 , 803534 , 806823 , 807157 , 809210 , 810852 , 812612 , 812874 , 813275 , 819488 , 820394 , 824577 , 827847 );
Copy