3
9.44 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
575341
551962
382874
397867
600540
390288
390970
747956
552638
397678
510669
623608
761582
418059
568531
549861
765692
554298
616025
410606
397643
518949
590812
713877
765449
512680
458623
518011
443550
591341
800531
493256
680260
761466
771177
826182
680251
713834
670625
761585
604328
489657
800514
533968
443565
639783
574141
418047
533065
630533
418057
532838
600490
630280
790754
503110
646025
443498
807521
642063
532751
651209
532812
418051
541848
496887
601101
]
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 (575341 , 551962 , 382874 , 397867 , 600540 , 390288 , 390970 , 747956 , 552638 , 397678 , 510669 , 623608 , 761582 , 418059 , 568531 , 549861 , 765692 , 554298 , 616025 , 410606 , 397643 , 518949 , 590812 , 713877 , 765449 , 512680 , 458623 , 518011 , 443550 , 591341 , 800531 , 493256 , 680260 , 761466 , 771177 , 826182 , 680251 , 713834 , 670625 , 761585 , 604328 , 489657 , 800514 , 533968 , 443565 , 639783 , 574141 , 418047 , 533065 , 630533 , 418057 , 532838 , 600490 , 630280 , 790754 , 503110 , 646025 , 443498 , 807521 , 642063 , 532751 , 651209 , 532812 , 418051 , 541848 , 496887 , 601101 );
Copy
4
2.20 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
382874
390288
390970
397643
397678
397867
410606
418047
418051
418057
418059
443498
443550
443565
458623
489657
493256
496887
503110
510669
512680
518011
518949
532751
532812
532838
533065
533968
541848
549861
551962
552638
554298
568531
574141
575341
590812
591341
600490
600540
601101
604328
616025
623608
630280
630533
639783
642063
646025
651209
670625
680251
680260
713834
713877
747956
761466
761582
761585
765449
765692
771177
790754
800514
800531
807521
826182
]
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 (382874 , 390288 , 390970 , 397643 , 397678 , 397867 , 410606 , 418047 , 418051 , 418057 , 418059 , 443498 , 443550 , 443565 , 458623 , 489657 , 493256 , 496887 , 503110 , 510669 , 512680 , 518011 , 518949 , 532751 , 532812 , 532838 , 533065 , 533968 , 541848 , 549861 , 551962 , 552638 , 554298 , 568531 , 574141 , 575341 , 590812 , 591341 , 600490 , 600540 , 601101 , 604328 , 616025 , 623608 , 630280 , 630533 , 639783 , 642063 , 646025 , 651209 , 670625 , 680251 , 680260 , 713834 , 713877 , 747956 , 761466 , 761582 , 761585 , 765449 , 765692 , 771177 , 790754 , 800514 , 800531 , 807521 , 826182 );
Copy
5
83.52 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
382874
390288
390970
397643
397678
397867
410606
418047
418051
418057
418059
443498
443550
443565
458623
489657
493256
496887
503110
510669
512680
518011
518949
532751
532812
532838
533065
533968
541848
549861
551962
552638
554298
568531
574141
575341
590812
591341
600490
600540
601101
604328
616025
623608
630280
630533
639783
642063
646025
651209
670625
680251
680260
713834
713877
747956
761466
761582
761585
765449
765692
771177
790754
800514
800531
807521
826182
]
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 (382874 , 390288 , 390970 , 397643 , 397678 , 397867 , 410606 , 418047 , 418051 , 418057 , 418059 , 443498 , 443550 , 443565 , 458623 , 489657 , 493256 , 496887 , 503110 , 510669 , 512680 , 518011 , 518949 , 532751 , 532812 , 532838 , 533065 , 533968 , 541848 , 549861 , 551962 , 552638 , 554298 , 568531 , 574141 , 575341 , 590812 , 591341 , 600490 , 600540 , 601101 , 604328 , 616025 , 623608 , 630280 , 630533 , 639783 , 642063 , 646025 , 651209 , 670625 , 680251 , 680260 , 713834 , 713877 , 747956 , 761466 , 761582 , 761585 , 765449 , 765692 , 771177 , 790754 , 800514 , 800531 , 807521 , 826182 );
Copy