3
15.88 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
656102
675628
809974
421234
702515
705371
712639
780321
811641
729345
761777
730934
754522
785548
479409
507432
466365
586298
604008
726282
765859
623234
813916
507258
547903
693292
712654
567411
595833
637437
807208
727004
772763
457409
461393
457804
504746
490178
482922
451866
751565
466649
462593
550688
554419
581758
584200
790742
502424
419628
457775
567400
682839
455514
527099
615674
474020
566439
557941
504183
511733
565254
507596
]
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 (656102 , 675628 , 809974 , 421234 , 702515 , 705371 , 712639 , 780321 , 811641 , 729345 , 761777 , 730934 , 754522 , 785548 , 479409 , 507432 , 466365 , 586298 , 604008 , 726282 , 765859 , 623234 , 813916 , 507258 , 547903 , 693292 , 712654 , 567411 , 595833 , 637437 , 807208 , 727004 , 772763 , 457409 , 461393 , 457804 , 504746 , 490178 , 482922 , 451866 , 751565 , 466649 , 462593 , 550688 , 554419 , 581758 , 584200 , 790742 , 502424 , 419628 , 457775 , 567400 , 682839 , 455514 , 527099 , 615674 , 474020 , 566439 , 557941 , 504183 , 511733 , 565254 , 507596 );
Copy
4
2.34 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
419628
421234
451866
455514
457409
457775
457804
461393
462593
466365
466649
474020
479409
482922
490178
502424
504183
504746
507258
507432
507596
511733
527099
547903
550688
554419
557941
565254
566439
567400
567411
581758
584200
586298
595833
604008
615674
623234
637437
656102
675628
682839
693292
702515
705371
712639
712654
726282
727004
729345
730934
751565
754522
761777
765859
772763
780321
785548
790742
807208
809974
811641
813916
]
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 (419628 , 421234 , 451866 , 455514 , 457409 , 457775 , 457804 , 461393 , 462593 , 466365 , 466649 , 474020 , 479409 , 482922 , 490178 , 502424 , 504183 , 504746 , 507258 , 507432 , 507596 , 511733 , 527099 , 547903 , 550688 , 554419 , 557941 , 565254 , 566439 , 567400 , 567411 , 581758 , 584200 , 586298 , 595833 , 604008 , 615674 , 623234 , 637437 , 656102 , 675628 , 682839 , 693292 , 702515 , 705371 , 712639 , 712654 , 726282 , 727004 , 729345 , 730934 , 751565 , 754522 , 761777 , 765859 , 772763 , 780321 , 785548 , 790742 , 807208 , 809974 , 811641 , 813916 );
Copy
5
109.55 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
419628
421234
451866
455514
457409
457775
457804
461393
462593
466365
466649
474020
479409
482922
490178
502424
504183
504746
507258
507432
507596
511733
527099
547903
550688
554419
557941
565254
566439
567400
567411
581758
584200
586298
595833
604008
615674
623234
637437
656102
675628
682839
693292
702515
705371
712639
712654
726282
727004
729345
730934
751565
754522
761777
765859
772763
780321
785548
790742
807208
809974
811641
813916
]
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 (419628 , 421234 , 451866 , 455514 , 457409 , 457775 , 457804 , 461393 , 462593 , 466365 , 466649 , 474020 , 479409 , 482922 , 490178 , 502424 , 504183 , 504746 , 507258 , 507432 , 507596 , 511733 , 527099 , 547903 , 550688 , 554419 , 557941 , 565254 , 566439 , 567400 , 567411 , 581758 , 584200 , 586298 , 595833 , 604008 , 615674 , 623234 , 637437 , 656102 , 675628 , 682839 , 693292 , 702515 , 705371 , 712639 , 712654 , 726282 , 727004 , 729345 , 730934 , 751565 , 754522 , 761777 , 765859 , 772763 , 780321 , 785548 , 790742 , 807208 , 809974 , 811641 , 813916 );
Copy