3
12.45 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
716313
734696
629828
651128
545861
750275
600966
669672
617398
566804
532080
559533
444594
230821
653795
453844
513174
620512
482466
740894
686234
560453
509113
738694
443669
820014
453865
697221
459783
453625
740484
753610
281574
800934
509701
473298
828707
762324
749484
565757
496624
738770
586493
568377
488203
480991
500684
485302
566449
608363
503512
503920
454617
465472
456852
523906
476264
484973
495030
794753
418654
477703
448678
456482
526274
771757
420403
519333
507703
714779
511033
416068
493163
]
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 (716313 , 734696 , 629828 , 651128 , 545861 , 750275 , 600966 , 669672 , 617398 , 566804 , 532080 , 559533 , 444594 , 230821 , 653795 , 453844 , 513174 , 620512 , 482466 , 740894 , 686234 , 560453 , 509113 , 738694 , 443669 , 820014 , 453865 , 697221 , 459783 , 453625 , 740484 , 753610 , 281574 , 800934 , 509701 , 473298 , 828707 , 762324 , 749484 , 565757 , 496624 , 738770 , 586493 , 568377 , 488203 , 480991 , 500684 , 485302 , 566449 , 608363 , 503512 , 503920 , 454617 , 465472 , 456852 , 523906 , 476264 , 484973 , 495030 , 794753 , 418654 , 477703 , 448678 , 456482 , 526274 , 771757 , 420403 , 519333 , 507703 , 714779 , 511033 , 416068 , 493163 );
Copy
4
2.86 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
230821
281574
416068
418654
420403
443669
444594
448678
453625
453844
453865
454617
456482
456852
459783
465472
473298
476264
477703
480991
482466
484973
485302
488203
493163
495030
496624
500684
503512
503920
507703
509113
509701
511033
513174
519333
523906
526274
532080
545861
559533
560453
565757
566449
566804
568377
586493
600966
608363
617398
620512
629828
651128
653795
669672
686234
697221
714779
716313
734696
738694
738770
740484
740894
749484
750275
753610
762324
771757
794753
800934
820014
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 (230821 , 281574 , 416068 , 418654 , 420403 , 443669 , 444594 , 448678 , 453625 , 453844 , 453865 , 454617 , 456482 , 456852 , 459783 , 465472 , 473298 , 476264 , 477703 , 480991 , 482466 , 484973 , 485302 , 488203 , 493163 , 495030 , 496624 , 500684 , 503512 , 503920 , 507703 , 509113 , 509701 , 511033 , 513174 , 519333 , 523906 , 526274 , 532080 , 545861 , 559533 , 560453 , 565757 , 566449 , 566804 , 568377 , 586493 , 600966 , 608363 , 617398 , 620512 , 629828 , 651128 , 653795 , 669672 , 686234 , 697221 , 714779 , 716313 , 734696 , 738694 , 738770 , 740484 , 740894 , 749484 , 750275 , 753610 , 762324 , 771757 , 794753 , 800934 , 820014 , 828707 );
Copy
5
79.94 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
230821
281574
416068
418654
420403
443669
444594
448678
453625
453844
453865
454617
456482
456852
459783
465472
473298
476264
477703
480991
482466
484973
485302
488203
493163
495030
496624
500684
503512
503920
507703
509113
509701
511033
513174
519333
523906
526274
532080
545861
559533
560453
565757
566449
566804
568377
586493
600966
608363
617398
620512
629828
651128
653795
669672
686234
697221
714779
716313
734696
738694
738770
740484
740894
749484
750275
753610
762324
771757
794753
800934
820014
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 (230821 , 281574 , 416068 , 418654 , 420403 , 443669 , 444594 , 448678 , 453625 , 453844 , 453865 , 454617 , 456482 , 456852 , 459783 , 465472 , 473298 , 476264 , 477703 , 480991 , 482466 , 484973 , 485302 , 488203 , 493163 , 495030 , 496624 , 500684 , 503512 , 503920 , 507703 , 509113 , 509701 , 511033 , 513174 , 519333 , 523906 , 526274 , 532080 , 545861 , 559533 , 560453 , 565757 , 566449 , 566804 , 568377 , 586493 , 600966 , 608363 , 617398 , 620512 , 629828 , 651128 , 653795 , 669672 , 686234 , 697221 , 714779 , 716313 , 734696 , 738694 , 738770 , 740484 , 740894 , 749484 , 750275 , 753610 , 762324 , 771757 , 794753 , 800934 , 820014 , 828707 );
Copy