4
10.53 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
737276
761496
790832
446923
473325
543764
571149
549178
593620
610589
644735
759941
6941
468940
516697
538266
735685
446540
435100
621387
618908
773404
632102
467959
472525
517006
459951
465858
680275
625221
593664
592301
593768
787624
446393
505150
505846
611484
668377
521205
450669
468634
510840
521195
511542
558738
562898
579848
442976
573357
624375
586594
496642
604046
482549
609140
789388
797141
734974
691209
793697
666903
458737
591331
443450
565241
575856
458361
639292
448940
606822
562906
564203
]
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 (737276 , 761496 , 790832 , 446923 , 473325 , 543764 , 571149 , 549178 , 593620 , 610589 , 644735 , 759941 , 6941 , 468940 , 516697 , 538266 , 735685 , 446540 , 435100 , 621387 , 618908 , 773404 , 632102 , 467959 , 472525 , 517006 , 459951 , 465858 , 680275 , 625221 , 593664 , 592301 , 593768 , 787624 , 446393 , 505150 , 505846 , 611484 , 668377 , 521205 , 450669 , 468634 , 510840 , 521195 , 511542 , 558738 , 562898 , 579848 , 442976 , 573357 , 624375 , 586594 , 496642 , 604046 , 482549 , 609140 , 789388 , 797141 , 734974 , 691209 , 793697 , 666903 , 458737 , 591331 , 443450 , 565241 , 575856 , 458361 , 639292 , 448940 , 606822 , 562906 , 564203 );
Copy
5
2.66 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
6941
435100
442976
443450
446393
446540
446923
448940
450669
458361
458737
459951
465858
467959
468634
468940
472525
473325
482549
496642
505150
505846
510840
511542
516697
517006
521195
521205
538266
543764
549178
558738
562898
562906
564203
565241
571149
573357
575856
579848
586594
591331
592301
593620
593664
593768
604046
606822
609140
610589
611484
618908
621387
624375
625221
632102
639292
644735
666903
668377
680275
691209
734974
735685
737276
759941
761496
773404
787624
789388
790832
793697
797141
]
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 (6941 , 435100 , 442976 , 443450 , 446393 , 446540 , 446923 , 448940 , 450669 , 458361 , 458737 , 459951 , 465858 , 467959 , 468634 , 468940 , 472525 , 473325 , 482549 , 496642 , 505150 , 505846 , 510840 , 511542 , 516697 , 517006 , 521195 , 521205 , 538266 , 543764 , 549178 , 558738 , 562898 , 562906 , 564203 , 565241 , 571149 , 573357 , 575856 , 579848 , 586594 , 591331 , 592301 , 593620 , 593664 , 593768 , 604046 , 606822 , 609140 , 610589 , 611484 , 618908 , 621387 , 624375 , 625221 , 632102 , 639292 , 644735 , 666903 , 668377 , 680275 , 691209 , 734974 , 735685 , 737276 , 759941 , 761496 , 773404 , 787624 , 789388 , 790832 , 793697 , 797141 );
Copy
6
100.21 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
6941
435100
442976
443450
446393
446540
446923
448940
450669
458361
458737
459951
465858
467959
468634
468940
472525
473325
482549
496642
505150
505846
510840
511542
516697
517006
521195
521205
538266
543764
549178
558738
562898
562906
564203
565241
571149
573357
575856
579848
586594
591331
592301
593620
593664
593768
604046
606822
609140
610589
611484
618908
621387
624375
625221
632102
639292
644735
666903
668377
680275
691209
734974
735685
737276
759941
761496
773404
787624
789388
790832
793697
797141
]
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 (6941 , 435100 , 442976 , 443450 , 446393 , 446540 , 446923 , 448940 , 450669 , 458361 , 458737 , 459951 , 465858 , 467959 , 468634 , 468940 , 472525 , 473325 , 482549 , 496642 , 505150 , 505846 , 510840 , 511542 , 516697 , 517006 , 521195 , 521205 , 538266 , 543764 , 549178 , 558738 , 562898 , 562906 , 564203 , 565241 , 571149 , 573357 , 575856 , 579848 , 586594 , 591331 , 592301 , 593620 , 593664 , 593768 , 604046 , 606822 , 609140 , 610589 , 611484 , 618908 , 621387 , 624375 , 625221 , 632102 , 639292 , 644735 , 666903 , 668377 , 680275 , 691209 , 734974 , 735685 , 737276 , 759941 , 761496 , 773404 , 787624 , 789388 , 790832 , 793697 , 797141 );
Copy