3
10.63 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
745305
548074
662909
746041
548885
704874
794482
812319
460965
541462
777113
727458
777204
795020
491442
482573
477168
555820
424870
827190
660704
660694
695747
622746
734356
448053
556450
551912
545164
448054
448051
616400
777133
442280
452273
460976
548879
470364
803579
725600
772682
796448
774156
533550
747566
446142
446090
696865
745306
770607
784287
650489
788304
744828
711275
419840
820147
456383
793374
541509
516979
586026
614942
516975
600864
600763
440966
407011
439626
440581
]
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 (745305 , 548074 , 662909 , 746041 , 548885 , 704874 , 794482 , 812319 , 460965 , 541462 , 777113 , 727458 , 777204 , 795020 , 491442 , 482573 , 477168 , 555820 , 424870 , 827190 , 660704 , 660694 , 695747 , 622746 , 734356 , 448053 , 556450 , 551912 , 545164 , 448054 , 448051 , 616400 , 777133 , 442280 , 452273 , 460976 , 548879 , 470364 , 803579 , 725600 , 772682 , 796448 , 774156 , 533550 , 747566 , 446142 , 446090 , 696865 , 745306 , 770607 , 784287 , 650489 , 788304 , 744828 , 711275 , 419840 , 820147 , 456383 , 793374 , 541509 , 516979 , 586026 , 614942 , 516975 , 600864 , 600763 , 440966 , 407011 , 439626 , 440581 );
Copy
4
2.75 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
407011
419840
424870
439626
440581
440966
442280
446090
446142
448051
448053
448054
452273
456383
460965
460976
470364
477168
482573
491442
516975
516979
533550
541462
541509
545164
548074
548879
548885
551912
555820
556450
586026
600763
600864
614942
616400
622746
650489
660694
660704
662909
695747
696865
704874
711275
725600
727458
734356
744828
745305
745306
746041
747566
770607
772682
774156
777113
777133
777204
784287
788304
793374
794482
795020
796448
803579
812319
820147
827190
]
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 (407011 , 419840 , 424870 , 439626 , 440581 , 440966 , 442280 , 446090 , 446142 , 448051 , 448053 , 448054 , 452273 , 456383 , 460965 , 460976 , 470364 , 477168 , 482573 , 491442 , 516975 , 516979 , 533550 , 541462 , 541509 , 545164 , 548074 , 548879 , 548885 , 551912 , 555820 , 556450 , 586026 , 600763 , 600864 , 614942 , 616400 , 622746 , 650489 , 660694 , 660704 , 662909 , 695747 , 696865 , 704874 , 711275 , 725600 , 727458 , 734356 , 744828 , 745305 , 745306 , 746041 , 747566 , 770607 , 772682 , 774156 , 777113 , 777133 , 777204 , 784287 , 788304 , 793374 , 794482 , 795020 , 796448 , 803579 , 812319 , 820147 , 827190 );
Copy
5
76.43 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
407011
419840
424870
439626
440581
440966
442280
446090
446142
448051
448053
448054
452273
456383
460965
460976
470364
477168
482573
491442
516975
516979
533550
541462
541509
545164
548074
548879
548885
551912
555820
556450
586026
600763
600864
614942
616400
622746
650489
660694
660704
662909
695747
696865
704874
711275
725600
727458
734356
744828
745305
745306
746041
747566
770607
772682
774156
777113
777133
777204
784287
788304
793374
794482
795020
796448
803579
812319
820147
827190
]
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 (407011 , 419840 , 424870 , 439626 , 440581 , 440966 , 442280 , 446090 , 446142 , 448051 , 448053 , 448054 , 452273 , 456383 , 460965 , 460976 , 470364 , 477168 , 482573 , 491442 , 516975 , 516979 , 533550 , 541462 , 541509 , 545164 , 548074 , 548879 , 548885 , 551912 , 555820 , 556450 , 586026 , 600763 , 600864 , 614942 , 616400 , 622746 , 650489 , 660694 , 660704 , 662909 , 695747 , 696865 , 704874 , 711275 , 725600 , 727458 , 734356 , 744828 , 745305 , 745306 , 746041 , 747566 , 770607 , 772682 , 774156 , 777113 , 777133 , 777204 , 784287 , 788304 , 793374 , 794482 , 795020 , 796448 , 803579 , 812319 , 820147 , 827190 );
Copy