3
9.78 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
697221
777217
437338
506127
492931
446204
539654
562453
742665
825797
757642
785662
818135
796492
823406
517280
683682
809529
569394
626561
726265
735750
771490
785824
799983
395317
701221
646395
801786
824810
590223
750724
798535
395398
775379
793368
751600
736905
771251
610672
713329
417878
437302
395401
561447
691832
547834
783392
805497
771398
797437
474421
494115
451127
448284
511016
642657
751572
804927
506131
519047
504091
511295
514677
519200
571976
585771
513828
]
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 (697221 , 777217 , 437338 , 506127 , 492931 , 446204 , 539654 , 562453 , 742665 , 825797 , 757642 , 785662 , 818135 , 796492 , 823406 , 517280 , 683682 , 809529 , 569394 , 626561 , 726265 , 735750 , 771490 , 785824 , 799983 , 395317 , 701221 , 646395 , 801786 , 824810 , 590223 , 750724 , 798535 , 395398 , 775379 , 793368 , 751600 , 736905 , 771251 , 610672 , 713329 , 417878 , 437302 , 395401 , 561447 , 691832 , 547834 , 783392 , 805497 , 771398 , 797437 , 474421 , 494115 , 451127 , 448284 , 511016 , 642657 , 751572 , 804927 , 506131 , 519047 , 504091 , 511295 , 514677 , 519200 , 571976 , 585771 , 513828 );
Copy
4
5.02 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
395317
395398
395401
417878
437302
437338
446204
448284
451127
474421
492931
494115
504091
506127
506131
511016
511295
513828
514677
517280
519047
519200
539654
547834
561447
562453
569394
571976
585771
590223
610672
626561
642657
646395
683682
691832
697221
701221
713329
726265
735750
736905
742665
750724
751572
751600
757642
771251
771398
771490
775379
777217
783392
785662
785824
793368
796492
797437
798535
799983
801786
804927
805497
809529
818135
823406
824810
825797
]
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 (395317 , 395398 , 395401 , 417878 , 437302 , 437338 , 446204 , 448284 , 451127 , 474421 , 492931 , 494115 , 504091 , 506127 , 506131 , 511016 , 511295 , 513828 , 514677 , 517280 , 519047 , 519200 , 539654 , 547834 , 561447 , 562453 , 569394 , 571976 , 585771 , 590223 , 610672 , 626561 , 642657 , 646395 , 683682 , 691832 , 697221 , 701221 , 713329 , 726265 , 735750 , 736905 , 742665 , 750724 , 751572 , 751600 , 757642 , 771251 , 771398 , 771490 , 775379 , 777217 , 783392 , 785662 , 785824 , 793368 , 796492 , 797437 , 798535 , 799983 , 801786 , 804927 , 805497 , 809529 , 818135 , 823406 , 824810 , 825797 );
Copy
5
136.96 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
395317
395398
395401
417878
437302
437338
446204
448284
451127
474421
492931
494115
504091
506127
506131
511016
511295
513828
514677
517280
519047
519200
539654
547834
561447
562453
569394
571976
585771
590223
610672
626561
642657
646395
683682
691832
697221
701221
713329
726265
735750
736905
742665
750724
751572
751600
757642
771251
771398
771490
775379
777217
783392
785662
785824
793368
796492
797437
798535
799983
801786
804927
805497
809529
818135
823406
824810
825797
]
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 (395317 , 395398 , 395401 , 417878 , 437302 , 437338 , 446204 , 448284 , 451127 , 474421 , 492931 , 494115 , 504091 , 506127 , 506131 , 511016 , 511295 , 513828 , 514677 , 517280 , 519047 , 519200 , 539654 , 547834 , 561447 , 562453 , 569394 , 571976 , 585771 , 590223 , 610672 , 626561 , 642657 , 646395 , 683682 , 691832 , 697221 , 701221 , 713329 , 726265 , 735750 , 736905 , 742665 , 750724 , 751572 , 751600 , 757642 , 771251 , 771398 , 771490 , 775379 , 777217 , 783392 , 785662 , 785824 , 793368 , 796492 , 797437 , 798535 , 799983 , 801786 , 804927 , 805497 , 809529 , 818135 , 823406 , 824810 , 825797 );
Copy