3
12.46 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
551225
576720
631984
605398
600271
496270
448810
566786
531182
527106
639798
639716
415883
508518
666865
425490
489328
559959
556037
431405
576692
505132
632261
617422
628082
482797
480419
577265
444924
457160
532760
533928
632635
381752
520775
545611
599880
639732
449123
506612
519392
637123
483550
455898
576723
634780
518438
647972
665768
674983
470858
554774
601253
509221
533746
562894
512447
577108
637074
617423
426405
467568
518935
527273
558432
592046
478672
554392
543874
]
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 (551225 , 576720 , 631984 , 605398 , 600271 , 496270 , 448810 , 566786 , 531182 , 527106 , 639798 , 639716 , 415883 , 508518 , 666865 , 425490 , 489328 , 559959 , 556037 , 431405 , 576692 , 505132 , 632261 , 617422 , 628082 , 482797 , 480419 , 577265 , 444924 , 457160 , 532760 , 533928 , 632635 , 381752 , 520775 , 545611 , 599880 , 639732 , 449123 , 506612 , 519392 , 637123 , 483550 , 455898 , 576723 , 634780 , 518438 , 647972 , 665768 , 674983 , 470858 , 554774 , 601253 , 509221 , 533746 , 562894 , 512447 , 577108 , 637074 , 617423 , 426405 , 467568 , 518935 , 527273 , 558432 , 592046 , 478672 , 554392 , 543874 );
Copy
4
2.60 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
381752
415883
425490
426405
431405
444924
448810
449123
455898
457160
467568
470858
478672
480419
482797
483550
489328
496270
505132
506612
508518
509221
512447
518438
518935
519392
520775
527106
527273
531182
532760
533746
533928
543874
545611
551225
554392
554774
556037
558432
559959
562894
566786
576692
576720
576723
577108
577265
592046
599880
600271
601253
605398
617422
617423
628082
631984
632261
632635
634780
637074
637123
639716
639732
639798
647972
665768
666865
674983
]
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 (381752 , 415883 , 425490 , 426405 , 431405 , 444924 , 448810 , 449123 , 455898 , 457160 , 467568 , 470858 , 478672 , 480419 , 482797 , 483550 , 489328 , 496270 , 505132 , 506612 , 508518 , 509221 , 512447 , 518438 , 518935 , 519392 , 520775 , 527106 , 527273 , 531182 , 532760 , 533746 , 533928 , 543874 , 545611 , 551225 , 554392 , 554774 , 556037 , 558432 , 559959 , 562894 , 566786 , 576692 , 576720 , 576723 , 577108 , 577265 , 592046 , 599880 , 600271 , 601253 , 605398 , 617422 , 617423 , 628082 , 631984 , 632261 , 632635 , 634780 , 637074 , 637123 , 639716 , 639732 , 639798 , 647972 , 665768 , 666865 , 674983 );
Copy
5
79.74 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
381752
415883
425490
426405
431405
444924
448810
449123
455898
457160
467568
470858
478672
480419
482797
483550
489328
496270
505132
506612
508518
509221
512447
518438
518935
519392
520775
527106
527273
531182
532760
533746
533928
543874
545611
551225
554392
554774
556037
558432
559959
562894
566786
576692
576720
576723
577108
577265
592046
599880
600271
601253
605398
617422
617423
628082
631984
632261
632635
634780
637074
637123
639716
639732
639798
647972
665768
666865
674983
]
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 (381752 , 415883 , 425490 , 426405 , 431405 , 444924 , 448810 , 449123 , 455898 , 457160 , 467568 , 470858 , 478672 , 480419 , 482797 , 483550 , 489328 , 496270 , 505132 , 506612 , 508518 , 509221 , 512447 , 518438 , 518935 , 519392 , 520775 , 527106 , 527273 , 531182 , 532760 , 533746 , 533928 , 543874 , 545611 , 551225 , 554392 , 554774 , 556037 , 558432 , 559959 , 562894 , 566786 , 576692 , 576720 , 576723 , 577108 , 577265 , 592046 , 599880 , 600271 , 601253 , 605398 , 617422 , 617423 , 628082 , 631984 , 632261 , 632635 , 634780 , 637074 , 637123 , 639716 , 639732 , 639798 , 647972 , 665768 , 666865 , 674983 );
Copy