3
11.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
690050
466499
465252
529122
796679
742629
727579
428111
624419
528761
767052
617807
582479
759917
813581
511394
624465
800573
473195
727560
714608
704109
618378
676680
796336
703467
739985
733266
477116
765580
622911
773974
788920
545763
489241
733317
421970
519922
742015
568453
801258
446537
661917
743426
700949
817895
824961
610806
742272
466928
795540
817249
728716
477581
731158
570177
728255
794162
394514
666869
454528
794754
546914
496718
457853
607023
528052
483513
469116
558788
639060
592580
]
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 (690050 , 466499 , 465252 , 529122 , 796679 , 742629 , 727579 , 428111 , 624419 , 528761 , 767052 , 617807 , 582479 , 759917 , 813581 , 511394 , 624465 , 800573 , 473195 , 727560 , 714608 , 704109 , 618378 , 676680 , 796336 , 703467 , 739985 , 733266 , 477116 , 765580 , 622911 , 773974 , 788920 , 545763 , 489241 , 733317 , 421970 , 519922 , 742015 , 568453 , 801258 , 446537 , 661917 , 743426 , 700949 , 817895 , 824961 , 610806 , 742272 , 466928 , 795540 , 817249 , 728716 , 477581 , 731158 , 570177 , 728255 , 794162 , 394514 , 666869 , 454528 , 794754 , 546914 , 496718 , 457853 , 607023 , 528052 , 483513 , 469116 , 558788 , 639060 , 592580 );
Copy
4
3.22 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
394514
421970
428111
446537
454528
457853
465252
466499
466928
469116
473195
477116
477581
483513
489241
496718
511394
519922
528052
528761
529122
545763
546914
558788
568453
570177
582479
592580
607023
610806
617807
618378
622911
624419
624465
639060
661917
666869
676680
690050
700949
703467
704109
714608
727560
727579
728255
728716
731158
733266
733317
739985
742015
742272
742629
743426
759917
765580
767052
773974
788920
794162
794754
795540
796336
796679
800573
801258
813581
817249
817895
824961
]
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 (394514 , 421970 , 428111 , 446537 , 454528 , 457853 , 465252 , 466499 , 466928 , 469116 , 473195 , 477116 , 477581 , 483513 , 489241 , 496718 , 511394 , 519922 , 528052 , 528761 , 529122 , 545763 , 546914 , 558788 , 568453 , 570177 , 582479 , 592580 , 607023 , 610806 , 617807 , 618378 , 622911 , 624419 , 624465 , 639060 , 661917 , 666869 , 676680 , 690050 , 700949 , 703467 , 704109 , 714608 , 727560 , 727579 , 728255 , 728716 , 731158 , 733266 , 733317 , 739985 , 742015 , 742272 , 742629 , 743426 , 759917 , 765580 , 767052 , 773974 , 788920 , 794162 , 794754 , 795540 , 796336 , 796679 , 800573 , 801258 , 813581 , 817249 , 817895 , 824961 );
Copy
5
130.13 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
394514
421970
428111
446537
454528
457853
465252
466499
466928
469116
473195
477116
477581
483513
489241
496718
511394
519922
528052
528761
529122
545763
546914
558788
568453
570177
582479
592580
607023
610806
617807
618378
622911
624419
624465
639060
661917
666869
676680
690050
700949
703467
704109
714608
727560
727579
728255
728716
731158
733266
733317
739985
742015
742272
742629
743426
759917
765580
767052
773974
788920
794162
794754
795540
796336
796679
800573
801258
813581
817249
817895
824961
]
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 (394514 , 421970 , 428111 , 446537 , 454528 , 457853 , 465252 , 466499 , 466928 , 469116 , 473195 , 477116 , 477581 , 483513 , 489241 , 496718 , 511394 , 519922 , 528052 , 528761 , 529122 , 545763 , 546914 , 558788 , 568453 , 570177 , 582479 , 592580 , 607023 , 610806 , 617807 , 618378 , 622911 , 624419 , 624465 , 639060 , 661917 , 666869 , 676680 , 690050 , 700949 , 703467 , 704109 , 714608 , 727560 , 727579 , 728255 , 728716 , 731158 , 733266 , 733317 , 739985 , 742015 , 742272 , 742629 , 743426 , 759917 , 765580 , 767052 , 773974 , 788920 , 794162 , 794754 , 795540 , 796336 , 796679 , 800573 , 801258 , 813581 , 817249 , 817895 , 824961 );
Copy