3
14.59 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
557246
546124
574916
466056
519572
576720
560201
466118
528803
536214
653557
653524
625870
583969
557298
597199
517184
681637
595507
595699
502029
541419
524879
576044
596823
586378
519345
430570
508441
621317
541888
566538
619777
560783
562763
512527
681554
672682
643098
526539
531148
574258
528353
521653
574527
554639
554370
603110
621691
466088
610806
604478
500971
599914
659487
567367
579367
424837
524621
543840
614029
465336
573314
558432
513951
647893
594121
]
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 (557246 , 546124 , 574916 , 466056 , 519572 , 576720 , 560201 , 466118 , 528803 , 536214 , 653557 , 653524 , 625870 , 583969 , 557298 , 597199 , 517184 , 681637 , 595507 , 595699 , 502029 , 541419 , 524879 , 576044 , 596823 , 586378 , 519345 , 430570 , 508441 , 621317 , 541888 , 566538 , 619777 , 560783 , 562763 , 512527 , 681554 , 672682 , 643098 , 526539 , 531148 , 574258 , 528353 , 521653 , 574527 , 554639 , 554370 , 603110 , 621691 , 466088 , 610806 , 604478 , 500971 , 599914 , 659487 , 567367 , 579367 , 424837 , 524621 , 543840 , 614029 , 465336 , 573314 , 558432 , 513951 , 647893 , 594121 );
Copy
4
2.38 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
424837
430570
465336
466056
466088
466118
500971
502029
508441
512527
513951
517184
519345
519572
521653
524621
524879
526539
528353
528803
531148
536214
541419
541888
543840
546124
554370
554639
557246
557298
558432
560201
560783
562763
566538
567367
573314
574258
574527
574916
576044
576720
579367
583969
586378
594121
595507
595699
596823
597199
599914
603110
604478
610806
614029
619777
621317
621691
625870
643098
647893
653524
653557
659487
672682
681554
681637
]
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 (424837 , 430570 , 465336 , 466056 , 466088 , 466118 , 500971 , 502029 , 508441 , 512527 , 513951 , 517184 , 519345 , 519572 , 521653 , 524621 , 524879 , 526539 , 528353 , 528803 , 531148 , 536214 , 541419 , 541888 , 543840 , 546124 , 554370 , 554639 , 557246 , 557298 , 558432 , 560201 , 560783 , 562763 , 566538 , 567367 , 573314 , 574258 , 574527 , 574916 , 576044 , 576720 , 579367 , 583969 , 586378 , 594121 , 595507 , 595699 , 596823 , 597199 , 599914 , 603110 , 604478 , 610806 , 614029 , 619777 , 621317 , 621691 , 625870 , 643098 , 647893 , 653524 , 653557 , 659487 , 672682 , 681554 , 681637 );
Copy
5
72.30 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
424837
430570
465336
466056
466088
466118
500971
502029
508441
512527
513951
517184
519345
519572
521653
524621
524879
526539
528353
528803
531148
536214
541419
541888
543840
546124
554370
554639
557246
557298
558432
560201
560783
562763
566538
567367
573314
574258
574527
574916
576044
576720
579367
583969
586378
594121
595507
595699
596823
597199
599914
603110
604478
610806
614029
619777
621317
621691
625870
643098
647893
653524
653557
659487
672682
681554
681637
]
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 (424837 , 430570 , 465336 , 466056 , 466088 , 466118 , 500971 , 502029 , 508441 , 512527 , 513951 , 517184 , 519345 , 519572 , 521653 , 524621 , 524879 , 526539 , 528353 , 528803 , 531148 , 536214 , 541419 , 541888 , 543840 , 546124 , 554370 , 554639 , 557246 , 557298 , 558432 , 560201 , 560783 , 562763 , 566538 , 567367 , 573314 , 574258 , 574527 , 574916 , 576044 , 576720 , 579367 , 583969 , 586378 , 594121 , 595507 , 595699 , 596823 , 597199 , 599914 , 603110 , 604478 , 610806 , 614029 , 619777 , 621317 , 621691 , 625870 , 643098 , 647893 , 653524 , 653557 , 659487 , 672682 , 681554 , 681637 );
Copy