4
13.09 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
795330
771249
428857
534469
577586
572171
700979
669247
596216
795510
795015
721859
524914
567486
499361
568621
587613
630607
779801
783849
565631
565680
503915
526858
667818
680219
588539
595087
614983
746162
775405
512239
500024
659377
586153
630987
633899
788407
526278
584105
554575
555628
552362
627361
506287
565751
557549
504635
598158
626042
655410
618334
521642
662879
556024
634070
596555
606806
546701
577096
555016
658269
564687
591198
614521
655697
680824
608771
564203
]
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 (795330 , 771249 , 428857 , 534469 , 577586 , 572171 , 700979 , 669247 , 596216 , 795510 , 795015 , 721859 , 524914 , 567486 , 499361 , 568621 , 587613 , 630607 , 779801 , 783849 , 565631 , 565680 , 503915 , 526858 , 667818 , 680219 , 588539 , 595087 , 614983 , 746162 , 775405 , 512239 , 500024 , 659377 , 586153 , 630987 , 633899 , 788407 , 526278 , 584105 , 554575 , 555628 , 552362 , 627361 , 506287 , 565751 , 557549 , 504635 , 598158 , 626042 , 655410 , 618334 , 521642 , 662879 , 556024 , 634070 , 596555 , 606806 , 546701 , 577096 , 555016 , 658269 , 564687 , 591198 , 614521 , 655697 , 680824 , 608771 , 564203 );
Copy
5
2.61 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
428857
499361
500024
503915
504635
506287
512239
521642
524914
526278
526858
534469
546701
552362
554575
555016
555628
556024
557549
564203
564687
565631
565680
565751
567486
568621
572171
577096
577586
584105
586153
587613
588539
591198
595087
596216
596555
598158
606806
608771
614521
614983
618334
626042
627361
630607
630987
633899
634070
655410
655697
658269
659377
662879
667818
669247
680219
680824
700979
721859
746162
771249
775405
779801
783849
788407
795015
795330
795510
]
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 (428857 , 499361 , 500024 , 503915 , 504635 , 506287 , 512239 , 521642 , 524914 , 526278 , 526858 , 534469 , 546701 , 552362 , 554575 , 555016 , 555628 , 556024 , 557549 , 564203 , 564687 , 565631 , 565680 , 565751 , 567486 , 568621 , 572171 , 577096 , 577586 , 584105 , 586153 , 587613 , 588539 , 591198 , 595087 , 596216 , 596555 , 598158 , 606806 , 608771 , 614521 , 614983 , 618334 , 626042 , 627361 , 630607 , 630987 , 633899 , 634070 , 655410 , 655697 , 658269 , 659377 , 662879 , 667818 , 669247 , 680219 , 680824 , 700979 , 721859 , 746162 , 771249 , 775405 , 779801 , 783849 , 788407 , 795015 , 795330 , 795510 );
Copy
6
118.26 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
428857
499361
500024
503915
504635
506287
512239
521642
524914
526278
526858
534469
546701
552362
554575
555016
555628
556024
557549
564203
564687
565631
565680
565751
567486
568621
572171
577096
577586
584105
586153
587613
588539
591198
595087
596216
596555
598158
606806
608771
614521
614983
618334
626042
627361
630607
630987
633899
634070
655410
655697
658269
659377
662879
667818
669247
680219
680824
700979
721859
746162
771249
775405
779801
783849
788407
795015
795330
795510
]
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 (428857 , 499361 , 500024 , 503915 , 504635 , 506287 , 512239 , 521642 , 524914 , 526278 , 526858 , 534469 , 546701 , 552362 , 554575 , 555016 , 555628 , 556024 , 557549 , 564203 , 564687 , 565631 , 565680 , 565751 , 567486 , 568621 , 572171 , 577096 , 577586 , 584105 , 586153 , 587613 , 588539 , 591198 , 595087 , 596216 , 596555 , 598158 , 606806 , 608771 , 614521 , 614983 , 618334 , 626042 , 627361 , 630607 , 630987 , 633899 , 634070 , 655410 , 655697 , 658269 , 659377 , 662879 , 667818 , 669247 , 680219 , 680824 , 700979 , 721859 , 746162 , 771249 , 775405 , 779801 , 783849 , 788407 , 795015 , 795330 , 795510 );
Copy