3
11.91 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
569047
583913
666863
666902
680159
672311
577019
716088
665328
542412
612553
601856
599987
555186
636111
562048
696865
555220
727052
747069
543652
550207
698133
618177
551535
677892
681251
552134
526436
571248
662796
680937
697555
670853
707391
666894
567493
570735
590730
600438
518581
566325
666472
668628
551903
586926
592890
630850
789799
584539
562067
608541
585050
565997
548422
546048
561488
585331
558622
579707
567277
615714
647635
633819
598105
]
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 (569047 , 583913 , 666863 , 666902 , 680159 , 672311 , 577019 , 716088 , 665328 , 542412 , 612553 , 601856 , 599987 , 555186 , 636111 , 562048 , 696865 , 555220 , 727052 , 747069 , 543652 , 550207 , 698133 , 618177 , 551535 , 677892 , 681251 , 552134 , 526436 , 571248 , 662796 , 680937 , 697555 , 670853 , 707391 , 666894 , 567493 , 570735 , 590730 , 600438 , 518581 , 566325 , 666472 , 668628 , 551903 , 586926 , 592890 , 630850 , 789799 , 584539 , 562067 , 608541 , 585050 , 565997 , 548422 , 546048 , 561488 , 585331 , 558622 , 579707 , 567277 , 615714 , 647635 , 633819 , 598105 );
Copy
4
3.04 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
518581
526436
542412
543652
546048
548422
550207
551535
551903
552134
555186
555220
558622
561488
562048
562067
565997
566325
567277
567493
569047
570735
571248
577019
579707
583913
584539
585050
585331
586926
590730
592890
598105
599987
600438
601856
608541
612553
615714
618177
630850
633819
636111
647635
662796
665328
666472
666863
666894
666902
668628
670853
672311
677892
680159
680937
681251
696865
697555
698133
707391
716088
727052
747069
789799
]
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 (518581 , 526436 , 542412 , 543652 , 546048 , 548422 , 550207 , 551535 , 551903 , 552134 , 555186 , 555220 , 558622 , 561488 , 562048 , 562067 , 565997 , 566325 , 567277 , 567493 , 569047 , 570735 , 571248 , 577019 , 579707 , 583913 , 584539 , 585050 , 585331 , 586926 , 590730 , 592890 , 598105 , 599987 , 600438 , 601856 , 608541 , 612553 , 615714 , 618177 , 630850 , 633819 , 636111 , 647635 , 662796 , 665328 , 666472 , 666863 , 666894 , 666902 , 668628 , 670853 , 672311 , 677892 , 680159 , 680937 , 681251 , 696865 , 697555 , 698133 , 707391 , 716088 , 727052 , 747069 , 789799 );
Copy
5
83.55 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
518581
526436
542412
543652
546048
548422
550207
551535
551903
552134
555186
555220
558622
561488
562048
562067
565997
566325
567277
567493
569047
570735
571248
577019
579707
583913
584539
585050
585331
586926
590730
592890
598105
599987
600438
601856
608541
612553
615714
618177
630850
633819
636111
647635
662796
665328
666472
666863
666894
666902
668628
670853
672311
677892
680159
680937
681251
696865
697555
698133
707391
716088
727052
747069
789799
]
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 (518581 , 526436 , 542412 , 543652 , 546048 , 548422 , 550207 , 551535 , 551903 , 552134 , 555186 , 555220 , 558622 , 561488 , 562048 , 562067 , 565997 , 566325 , 567277 , 567493 , 569047 , 570735 , 571248 , 577019 , 579707 , 583913 , 584539 , 585050 , 585331 , 586926 , 590730 , 592890 , 598105 , 599987 , 600438 , 601856 , 608541 , 612553 , 615714 , 618177 , 630850 , 633819 , 636111 , 647635 , 662796 , 665328 , 666472 , 666863 , 666894 , 666902 , 668628 , 670853 , 672311 , 677892 , 680159 , 680937 , 681251 , 696865 , 697555 , 698133 , 707391 , 716088 , 727052 , 747069 , 789799 );
Copy