4
10.80 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
700724
823841
712458
675494
700727
485179
619230
781034
725292
771925
795381
737969
783033
747982
715407
581739
630769
786056
711358
626579
627253
732984
733671
501322
619363
811130
793680
733176
791600
723622
552263
651702
652129
662469
667459
778492
723776
756367
794396
461418
461775
580193
716270
451494
490157
490155
432745
577125
674907
588317
623961
772517
466799
485417
623972
810852
796640
510597
577080
615721
616910
480837
498909
445661
522642
514796
486601
]
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 (700724 , 823841 , 712458 , 675494 , 700727 , 485179 , 619230 , 781034 , 725292 , 771925 , 795381 , 737969 , 783033 , 747982 , 715407 , 581739 , 630769 , 786056 , 711358 , 626579 , 627253 , 732984 , 733671 , 501322 , 619363 , 811130 , 793680 , 733176 , 791600 , 723622 , 552263 , 651702 , 652129 , 662469 , 667459 , 778492 , 723776 , 756367 , 794396 , 461418 , 461775 , 580193 , 716270 , 451494 , 490157 , 490155 , 432745 , 577125 , 674907 , 588317 , 623961 , 772517 , 466799 , 485417 , 623972 , 810852 , 796640 , 510597 , 577080 , 615721 , 616910 , 480837 , 498909 , 445661 , 522642 , 514796 , 486601 );
Copy
5
2.89 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
432745
445661
451494
461418
461775
466799
480837
485179
485417
486601
490155
490157
498909
501322
510597
514796
522642
552263
577080
577125
580193
581739
588317
615721
616910
619230
619363
623961
623972
626579
627253
630769
651702
652129
662469
667459
674907
675494
700724
700727
711358
712458
715407
716270
723622
723776
725292
732984
733176
733671
737969
747982
756367
771925
772517
778492
781034
783033
786056
791600
793680
794396
795381
796640
810852
811130
823841
]
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 (432745 , 445661 , 451494 , 461418 , 461775 , 466799 , 480837 , 485179 , 485417 , 486601 , 490155 , 490157 , 498909 , 501322 , 510597 , 514796 , 522642 , 552263 , 577080 , 577125 , 580193 , 581739 , 588317 , 615721 , 616910 , 619230 , 619363 , 623961 , 623972 , 626579 , 627253 , 630769 , 651702 , 652129 , 662469 , 667459 , 674907 , 675494 , 700724 , 700727 , 711358 , 712458 , 715407 , 716270 , 723622 , 723776 , 725292 , 732984 , 733176 , 733671 , 737969 , 747982 , 756367 , 771925 , 772517 , 778492 , 781034 , 783033 , 786056 , 791600 , 793680 , 794396 , 795381 , 796640 , 810852 , 811130 , 823841 );
Copy
6
103.82 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
432745
445661
451494
461418
461775
466799
480837
485179
485417
486601
490155
490157
498909
501322
510597
514796
522642
552263
577080
577125
580193
581739
588317
615721
616910
619230
619363
623961
623972
626579
627253
630769
651702
652129
662469
667459
674907
675494
700724
700727
711358
712458
715407
716270
723622
723776
725292
732984
733176
733671
737969
747982
756367
771925
772517
778492
781034
783033
786056
791600
793680
794396
795381
796640
810852
811130
823841
]
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 (432745 , 445661 , 451494 , 461418 , 461775 , 466799 , 480837 , 485179 , 485417 , 486601 , 490155 , 490157 , 498909 , 501322 , 510597 , 514796 , 522642 , 552263 , 577080 , 577125 , 580193 , 581739 , 588317 , 615721 , 616910 , 619230 , 619363 , 623961 , 623972 , 626579 , 627253 , 630769 , 651702 , 652129 , 662469 , 667459 , 674907 , 675494 , 700724 , 700727 , 711358 , 712458 , 715407 , 716270 , 723622 , 723776 , 725292 , 732984 , 733176 , 733671 , 737969 , 747982 , 756367 , 771925 , 772517 , 778492 , 781034 , 783033 , 786056 , 791600 , 793680 , 794396 , 795381 , 796640 , 810852 , 811130 , 823841 );
Copy