3
13.50 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
387696
809084
651130
807013
805319
825911
782560
545663
650719
806411
445080
444233
808062
720101
544799
741684
634743
578432
642076
547659
607665
765578
806370
410305
780664
764298
530540
752666
497693
504233
792664
802256
752669
456625
427128
423787
666854
671038
798624
702331
799383
510076
413392
545379
545426
794301
564310
626593
423784
460765
511858
564237
602024
598233
545392
500914
427132
707692
609890
427027
500288
470829
416751
513569
501724
537251
]
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 (387696 , 809084 , 651130 , 807013 , 805319 , 825911 , 782560 , 545663 , 650719 , 806411 , 445080 , 444233 , 808062 , 720101 , 544799 , 741684 , 634743 , 578432 , 642076 , 547659 , 607665 , 765578 , 806370 , 410305 , 780664 , 764298 , 530540 , 752666 , 497693 , 504233 , 792664 , 802256 , 752669 , 456625 , 427128 , 423787 , 666854 , 671038 , 798624 , 702331 , 799383 , 510076 , 413392 , 545379 , 545426 , 794301 , 564310 , 626593 , 423784 , 460765 , 511858 , 564237 , 602024 , 598233 , 545392 , 500914 , 427132 , 707692 , 609890 , 427027 , 500288 , 470829 , 416751 , 513569 , 501724 , 537251 );
Copy
4
2.74 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
387696
410305
413392
416751
423784
423787
427027
427128
427132
444233
445080
456625
460765
470829
497693
500288
500914
501724
504233
510076
511858
513569
530540
537251
544799
545379
545392
545426
545663
547659
564237
578432
598233
602024
607665
609890
626593
634743
642076
650719
651130
666854
671038
702331
707692
720101
741684
752666
752669
764298
765578
780664
782560
792664
794301
798624
799383
802256
805319
806370
806411
807013
808062
809084
825911
]
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 (387696 , 410305 , 413392 , 416751 , 423784 , 423787 , 427027 , 427128 , 427132 , 444233 , 445080 , 456625 , 460765 , 470829 , 497693 , 500288 , 500914 , 501724 , 504233 , 510076 , 511858 , 513569 , 530540 , 537251 , 544799 , 545379 , 545392 , 545426 , 545663 , 547659 , 564237 , 578432 , 598233 , 602024 , 607665 , 609890 , 626593 , 634743 , 642076 , 650719 , 651130 , 666854 , 671038 , 702331 , 707692 , 720101 , 741684 , 752666 , 752669 , 764298 , 765578 , 780664 , 782560 , 792664 , 794301 , 798624 , 799383 , 802256 , 805319 , 806370 , 806411 , 807013 , 808062 , 809084 , 825911 );
Copy
5
120.42 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
387696
410305
413392
416751
423784
423787
427027
427128
427132
444233
445080
456625
460765
470829
497693
500288
500914
501724
504233
510076
511858
513569
530540
537251
544799
545379
545392
545426
545663
547659
564237
578432
598233
602024
607665
609890
626593
634743
642076
650719
651130
666854
671038
702331
707692
720101
741684
752666
752669
764298
765578
780664
782560
792664
794301
798624
799383
802256
805319
806370
806411
807013
808062
809084
825911
]
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 (387696 , 410305 , 413392 , 416751 , 423784 , 423787 , 427027 , 427128 , 427132 , 444233 , 445080 , 456625 , 460765 , 470829 , 497693 , 500288 , 500914 , 501724 , 504233 , 510076 , 511858 , 513569 , 530540 , 537251 , 544799 , 545379 , 545392 , 545426 , 545663 , 547659 , 564237 , 578432 , 598233 , 602024 , 607665 , 609890 , 626593 , 634743 , 642076 , 650719 , 651130 , 666854 , 671038 , 702331 , 707692 , 720101 , 741684 , 752666 , 752669 , 764298 , 765578 , 780664 , 782560 , 792664 , 794301 , 798624 , 799383 , 802256 , 805319 , 806370 , 806411 , 807013 , 808062 , 809084 , 825911 );
Copy