4
9.79 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
575474
828707
753893
827882
653745
693340
744157
825697
827890
519529
647694
690708
606826
778750
41050
812169
811276
581252
619262
591824
763808
552486
806765
470044
525967
528613
523710
411190
821924
460656
532117
575105
574887
618593
808143
462591
476849
424969
421956
446119
461699
560749
551776
576050
653415
673956
680705
575206
584436
605382
609954
472584
481088
430255
523319
529612
535206
541994
556213
577455
637680
514417
485733
631110
464708
511844
431553
483149
559173
546680
527062
449778
617407
472750
]
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 (575474 , 828707 , 753893 , 827882 , 653745 , 693340 , 744157 , 825697 , 827890 , 519529 , 647694 , 690708 , 606826 , 778750 , 41050 , 812169 , 811276 , 581252 , 619262 , 591824 , 763808 , 552486 , 806765 , 470044 , 525967 , 528613 , 523710 , 411190 , 821924 , 460656 , 532117 , 575105 , 574887 , 618593 , 808143 , 462591 , 476849 , 424969 , 421956 , 446119 , 461699 , 560749 , 551776 , 576050 , 653415 , 673956 , 680705 , 575206 , 584436 , 605382 , 609954 , 472584 , 481088 , 430255 , 523319 , 529612 , 535206 , 541994 , 556213 , 577455 , 637680 , 514417 , 485733 , 631110 , 464708 , 511844 , 431553 , 483149 , 559173 , 546680 , 527062 , 449778 , 617407 , 472750 );
Copy
5
2.37 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
41050
411190
421956
424969
430255
431553
446119
449778
460656
461699
462591
464708
470044
472584
472750
476849
481088
483149
485733
511844
514417
519529
523319
523710
525967
527062
528613
529612
532117
535206
541994
546680
551776
552486
556213
559173
560749
574887
575105
575206
575474
576050
577455
581252
584436
591824
605382
606826
609954
617407
618593
619262
631110
637680
647694
653415
653745
673956
680705
690708
693340
744157
753893
763808
778750
806765
808143
811276
812169
821924
825697
827882
827890
828707
]
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 (41050 , 411190 , 421956 , 424969 , 430255 , 431553 , 446119 , 449778 , 460656 , 461699 , 462591 , 464708 , 470044 , 472584 , 472750 , 476849 , 481088 , 483149 , 485733 , 511844 , 514417 , 519529 , 523319 , 523710 , 525967 , 527062 , 528613 , 529612 , 532117 , 535206 , 541994 , 546680 , 551776 , 552486 , 556213 , 559173 , 560749 , 574887 , 575105 , 575206 , 575474 , 576050 , 577455 , 581252 , 584436 , 591824 , 605382 , 606826 , 609954 , 617407 , 618593 , 619262 , 631110 , 637680 , 647694 , 653415 , 653745 , 673956 , 680705 , 690708 , 693340 , 744157 , 753893 , 763808 , 778750 , 806765 , 808143 , 811276 , 812169 , 821924 , 825697 , 827882 , 827890 , 828707 );
Copy
6
124.67 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
41050
411190
421956
424969
430255
431553
446119
449778
460656
461699
462591
464708
470044
472584
472750
476849
481088
483149
485733
511844
514417
519529
523319
523710
525967
527062
528613
529612
532117
535206
541994
546680
551776
552486
556213
559173
560749
574887
575105
575206
575474
576050
577455
581252
584436
591824
605382
606826
609954
617407
618593
619262
631110
637680
647694
653415
653745
673956
680705
690708
693340
744157
753893
763808
778750
806765
808143
811276
812169
821924
825697
827882
827890
828707
]
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 (41050 , 411190 , 421956 , 424969 , 430255 , 431553 , 446119 , 449778 , 460656 , 461699 , 462591 , 464708 , 470044 , 472584 , 472750 , 476849 , 481088 , 483149 , 485733 , 511844 , 514417 , 519529 , 523319 , 523710 , 525967 , 527062 , 528613 , 529612 , 532117 , 535206 , 541994 , 546680 , 551776 , 552486 , 556213 , 559173 , 560749 , 574887 , 575105 , 575206 , 575474 , 576050 , 577455 , 581252 , 584436 , 591824 , 605382 , 606826 , 609954 , 617407 , 618593 , 619262 , 631110 , 637680 , 647694 , 653415 , 653745 , 673956 , 680705 , 690708 , 693340 , 744157 , 753893 , 763808 , 778750 , 806765 , 808143 , 811276 , 812169 , 821924 , 825697 , 827882 , 827890 , 828707 );
Copy