3
10.83 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
648982
661616
719752
764500
522005
678811
654278
673217
716834
562141
592062
585301
590624
810388
811829
756955
756165
771724
764224
709286
716607
791106
460230
540739
500390
444326
504985
553665
580401
719765
590355
592730
599542
806760
793073
471300
414975
417955
495930
510988
497189
678015
662152
685732
727959
809894
417934
439593
422304
508200
520596
494513
495937
542520
464706
475960
457687
501433
537249
448249
490507
520555
496518
670745
575841
]
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 (648982 , 661616 , 719752 , 764500 , 522005 , 678811 , 654278 , 673217 , 716834 , 562141 , 592062 , 585301 , 590624 , 810388 , 811829 , 756955 , 756165 , 771724 , 764224 , 709286 , 716607 , 791106 , 460230 , 540739 , 500390 , 444326 , 504985 , 553665 , 580401 , 719765 , 590355 , 592730 , 599542 , 806760 , 793073 , 471300 , 414975 , 417955 , 495930 , 510988 , 497189 , 678015 , 662152 , 685732 , 727959 , 809894 , 417934 , 439593 , 422304 , 508200 , 520596 , 494513 , 495937 , 542520 , 464706 , 475960 , 457687 , 501433 , 537249 , 448249 , 490507 , 520555 , 496518 , 670745 , 575841 );
Copy
4
2.35 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
414975
417934
417955
422304
439593
444326
448249
457687
460230
464706
471300
475960
490507
494513
495930
495937
496518
497189
500390
501433
504985
508200
510988
520555
520596
522005
537249
540739
542520
553665
562141
575841
580401
585301
590355
590624
592062
592730
599542
648982
654278
661616
662152
670745
673217
678015
678811
685732
709286
716607
716834
719752
719765
727959
756165
756955
764224
764500
771724
791106
793073
806760
809894
810388
811829
]
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 (414975 , 417934 , 417955 , 422304 , 439593 , 444326 , 448249 , 457687 , 460230 , 464706 , 471300 , 475960 , 490507 , 494513 , 495930 , 495937 , 496518 , 497189 , 500390 , 501433 , 504985 , 508200 , 510988 , 520555 , 520596 , 522005 , 537249 , 540739 , 542520 , 553665 , 562141 , 575841 , 580401 , 585301 , 590355 , 590624 , 592062 , 592730 , 599542 , 648982 , 654278 , 661616 , 662152 , 670745 , 673217 , 678015 , 678811 , 685732 , 709286 , 716607 , 716834 , 719752 , 719765 , 727959 , 756165 , 756955 , 764224 , 764500 , 771724 , 791106 , 793073 , 806760 , 809894 , 810388 , 811829 );
Copy
5
95.77 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
414975
417934
417955
422304
439593
444326
448249
457687
460230
464706
471300
475960
490507
494513
495930
495937
496518
497189
500390
501433
504985
508200
510988
520555
520596
522005
537249
540739
542520
553665
562141
575841
580401
585301
590355
590624
592062
592730
599542
648982
654278
661616
662152
670745
673217
678015
678811
685732
709286
716607
716834
719752
719765
727959
756165
756955
764224
764500
771724
791106
793073
806760
809894
810388
811829
]
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 (414975 , 417934 , 417955 , 422304 , 439593 , 444326 , 448249 , 457687 , 460230 , 464706 , 471300 , 475960 , 490507 , 494513 , 495930 , 495937 , 496518 , 497189 , 500390 , 501433 , 504985 , 508200 , 510988 , 520555 , 520596 , 522005 , 537249 , 540739 , 542520 , 553665 , 562141 , 575841 , 580401 , 585301 , 590355 , 590624 , 592062 , 592730 , 599542 , 648982 , 654278 , 661616 , 662152 , 670745 , 673217 , 678015 , 678811 , 685732 , 709286 , 716607 , 716834 , 719752 , 719765 , 727959 , 756165 , 756955 , 764224 , 764500 , 771724 , 791106 , 793073 , 806760 , 809894 , 810388 , 811829 );
Copy