4
11.64 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
628340
789470
507178
565938
568081
554758
469675
507549
622178
804535
744457
507194
673093
620318
506844
402596
383053
390229
683608
799626
485046
489587
799623
817146
669583
679415
785667
776042
795354
507306
539609
619011
729134
482684
448561
531903
464557
319102
476422
550585
592752
482913
493456
746141
799635
431427
488750
808114
824612
506135
602674
819869
448061
462101
572827
557972
619317
799637
513779
517125
644634
799402
617175
435715
611918
488923
807529
608347
572516
573481
610995
498882
480064
689622
558543
]
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 (628340 , 789470 , 507178 , 565938 , 568081 , 554758 , 469675 , 507549 , 622178 , 804535 , 744457 , 507194 , 673093 , 620318 , 506844 , 402596 , 383053 , 390229 , 683608 , 799626 , 485046 , 489587 , 799623 , 817146 , 669583 , 679415 , 785667 , 776042 , 795354 , 507306 , 539609 , 619011 , 729134 , 482684 , 448561 , 531903 , 464557 , 319102 , 476422 , 550585 , 592752 , 482913 , 493456 , 746141 , 799635 , 431427 , 488750 , 808114 , 824612 , 506135 , 602674 , 819869 , 448061 , 462101 , 572827 , 557972 , 619317 , 799637 , 513779 , 517125 , 644634 , 799402 , 617175 , 435715 , 611918 , 488923 , 807529 , 608347 , 572516 , 573481 , 610995 , 498882 , 480064 , 689622 , 558543 );
Copy
5
2.94 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
319102
383053
390229
402596
431427
435715
448061
448561
462101
464557
469675
476422
480064
482684
482913
485046
488750
488923
489587
493456
498882
506135
506844
507178
507194
507306
507549
513779
517125
531903
539609
550585
554758
557972
558543
565938
568081
572516
572827
573481
592752
602674
608347
610995
611918
617175
619011
619317
620318
622178
628340
644634
669583
673093
679415
683608
689622
729134
744457
746141
776042
785667
789470
795354
799402
799623
799626
799635
799637
804535
807529
808114
817146
819869
824612
]
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 (319102 , 383053 , 390229 , 402596 , 431427 , 435715 , 448061 , 448561 , 462101 , 464557 , 469675 , 476422 , 480064 , 482684 , 482913 , 485046 , 488750 , 488923 , 489587 , 493456 , 498882 , 506135 , 506844 , 507178 , 507194 , 507306 , 507549 , 513779 , 517125 , 531903 , 539609 , 550585 , 554758 , 557972 , 558543 , 565938 , 568081 , 572516 , 572827 , 573481 , 592752 , 602674 , 608347 , 610995 , 611918 , 617175 , 619011 , 619317 , 620318 , 622178 , 628340 , 644634 , 669583 , 673093 , 679415 , 683608 , 689622 , 729134 , 744457 , 746141 , 776042 , 785667 , 789470 , 795354 , 799402 , 799623 , 799626 , 799635 , 799637 , 804535 , 807529 , 808114 , 817146 , 819869 , 824612 );
Copy
6
100.44 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
319102
383053
390229
402596
431427
435715
448061
448561
462101
464557
469675
476422
480064
482684
482913
485046
488750
488923
489587
493456
498882
506135
506844
507178
507194
507306
507549
513779
517125
531903
539609
550585
554758
557972
558543
565938
568081
572516
572827
573481
592752
602674
608347
610995
611918
617175
619011
619317
620318
622178
628340
644634
669583
673093
679415
683608
689622
729134
744457
746141
776042
785667
789470
795354
799402
799623
799626
799635
799637
804535
807529
808114
817146
819869
824612
]
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 (319102 , 383053 , 390229 , 402596 , 431427 , 435715 , 448061 , 448561 , 462101 , 464557 , 469675 , 476422 , 480064 , 482684 , 482913 , 485046 , 488750 , 488923 , 489587 , 493456 , 498882 , 506135 , 506844 , 507178 , 507194 , 507306 , 507549 , 513779 , 517125 , 531903 , 539609 , 550585 , 554758 , 557972 , 558543 , 565938 , 568081 , 572516 , 572827 , 573481 , 592752 , 602674 , 608347 , 610995 , 611918 , 617175 , 619011 , 619317 , 620318 , 622178 , 628340 , 644634 , 669583 , 673093 , 679415 , 683608 , 689622 , 729134 , 744457 , 746141 , 776042 , 785667 , 789470 , 795354 , 799402 , 799623 , 799626 , 799635 , 799637 , 804535 , 807529 , 808114 , 817146 , 819869 , 824612 );
Copy