3
14.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
628325
566446
558428
592424
563125
629286
538664
621715
543984
572766
577373
545403
671729
622980
695631
670111
715097
706939
581273
672099
690865
549938
699385
818992
694206
770146
651684
695626
576626
600712
564519
545345
576655
720382
709052
590421
592395
708462
542198
566641
584244
670093
692315
620134
819506
672158
581313
600316
644953
541316
541781
648466
715670
580254
543496
571240
541828
541631
576696
541738
541586
592521
483474
541671
541770
541806
]
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 (628325 , 566446 , 558428 , 592424 , 563125 , 629286 , 538664 , 621715 , 543984 , 572766 , 577373 , 545403 , 671729 , 622980 , 695631 , 670111 , 715097 , 706939 , 581273 , 672099 , 690865 , 549938 , 699385 , 818992 , 694206 , 770146 , 651684 , 695626 , 576626 , 600712 , 564519 , 545345 , 576655 , 720382 , 709052 , 590421 , 592395 , 708462 , 542198 , 566641 , 584244 , 670093 , 692315 , 620134 , 819506 , 672158 , 581313 , 600316 , 644953 , 541316 , 541781 , 648466 , 715670 , 580254 , 543496 , 571240 , 541828 , 541631 , 576696 , 541738 , 541586 , 592521 , 483474 , 541671 , 541770 , 541806 );
Copy
4
2.39 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
483474
538664
541316
541586
541631
541671
541738
541770
541781
541806
541828
542198
543496
543984
545345
545403
549938
558428
563125
564519
566446
566641
571240
572766
576626
576655
576696
577373
580254
581273
581313
584244
590421
592395
592424
592521
600316
600712
620134
621715
622980
628325
629286
644953
648466
651684
670093
670111
671729
672099
672158
690865
692315
694206
695626
695631
699385
706939
708462
709052
715097
715670
720382
770146
818992
819506
]
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 (483474 , 538664 , 541316 , 541586 , 541631 , 541671 , 541738 , 541770 , 541781 , 541806 , 541828 , 542198 , 543496 , 543984 , 545345 , 545403 , 549938 , 558428 , 563125 , 564519 , 566446 , 566641 , 571240 , 572766 , 576626 , 576655 , 576696 , 577373 , 580254 , 581273 , 581313 , 584244 , 590421 , 592395 , 592424 , 592521 , 600316 , 600712 , 620134 , 621715 , 622980 , 628325 , 629286 , 644953 , 648466 , 651684 , 670093 , 670111 , 671729 , 672099 , 672158 , 690865 , 692315 , 694206 , 695626 , 695631 , 699385 , 706939 , 708462 , 709052 , 715097 , 715670 , 720382 , 770146 , 818992 , 819506 );
Copy
5
69.11 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
483474
538664
541316
541586
541631
541671
541738
541770
541781
541806
541828
542198
543496
543984
545345
545403
549938
558428
563125
564519
566446
566641
571240
572766
576626
576655
576696
577373
580254
581273
581313
584244
590421
592395
592424
592521
600316
600712
620134
621715
622980
628325
629286
644953
648466
651684
670093
670111
671729
672099
672158
690865
692315
694206
695626
695631
699385
706939
708462
709052
715097
715670
720382
770146
818992
819506
]
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 (483474 , 538664 , 541316 , 541586 , 541631 , 541671 , 541738 , 541770 , 541781 , 541806 , 541828 , 542198 , 543496 , 543984 , 545345 , 545403 , 549938 , 558428 , 563125 , 564519 , 566446 , 566641 , 571240 , 572766 , 576626 , 576655 , 576696 , 577373 , 580254 , 581273 , 581313 , 584244 , 590421 , 592395 , 592424 , 592521 , 600316 , 600712 , 620134 , 621715 , 622980 , 628325 , 629286 , 644953 , 648466 , 651684 , 670093 , 670111 , 671729 , 672099 , 672158 , 690865 , 692315 , 694206 , 695626 , 695631 , 699385 , 706939 , 708462 , 709052 , 715097 , 715670 , 720382 , 770146 , 818992 , 819506 );
Copy