3
13.01 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
446135
470989
474103
493549
523622
564545
566374
601672
619663
576157
458010
663212
559116
513976
554787
466097
506305
466989
430989
492329
495126
549776
555582
586566
589684
603298
442783
443683
519548
496554
431422
546804
591119
561484
581098
430792
466730
520682
564706
612964
593032
618523
467879
429890
421155
598649
513775
458523
513625
519371
493163
530513
476103
606778
512355
591954
579341
555054
473912
528084
530507
550615
429143
455392
520697
608358
473505
650806
622938
527451
557537
598865
430018
]
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 (446135 , 470989 , 474103 , 493549 , 523622 , 564545 , 566374 , 601672 , 619663 , 576157 , 458010 , 663212 , 559116 , 513976 , 554787 , 466097 , 506305 , 466989 , 430989 , 492329 , 495126 , 549776 , 555582 , 586566 , 589684 , 603298 , 442783 , 443683 , 519548 , 496554 , 431422 , 546804 , 591119 , 561484 , 581098 , 430792 , 466730 , 520682 , 564706 , 612964 , 593032 , 618523 , 467879 , 429890 , 421155 , 598649 , 513775 , 458523 , 513625 , 519371 , 493163 , 530513 , 476103 , 606778 , 512355 , 591954 , 579341 , 555054 , 473912 , 528084 , 530507 , 550615 , 429143 , 455392 , 520697 , 608358 , 473505 , 650806 , 622938 , 527451 , 557537 , 598865 , 430018 );
Copy
4
2.52 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
421155
429143
429890
430018
430792
430989
431422
442783
443683
446135
455392
458010
458523
466097
466730
466989
467879
470989
473505
473912
474103
476103
492329
493163
493549
495126
496554
506305
512355
513625
513775
513976
519371
519548
520682
520697
523622
527451
528084
530507
530513
546804
549776
550615
554787
555054
555582
557537
559116
561484
564545
564706
566374
576157
579341
581098
586566
589684
591119
591954
593032
598649
598865
601672
603298
606778
608358
612964
618523
619663
622938
650806
663212
]
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 (421155 , 429143 , 429890 , 430018 , 430792 , 430989 , 431422 , 442783 , 443683 , 446135 , 455392 , 458010 , 458523 , 466097 , 466730 , 466989 , 467879 , 470989 , 473505 , 473912 , 474103 , 476103 , 492329 , 493163 , 493549 , 495126 , 496554 , 506305 , 512355 , 513625 , 513775 , 513976 , 519371 , 519548 , 520682 , 520697 , 523622 , 527451 , 528084 , 530507 , 530513 , 546804 , 549776 , 550615 , 554787 , 555054 , 555582 , 557537 , 559116 , 561484 , 564545 , 564706 , 566374 , 576157 , 579341 , 581098 , 586566 , 589684 , 591119 , 591954 , 593032 , 598649 , 598865 , 601672 , 603298 , 606778 , 608358 , 612964 , 618523 , 619663 , 622938 , 650806 , 663212 );
Copy
5
90.26 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
421155
429143
429890
430018
430792
430989
431422
442783
443683
446135
455392
458010
458523
466097
466730
466989
467879
470989
473505
473912
474103
476103
492329
493163
493549
495126
496554
506305
512355
513625
513775
513976
519371
519548
520682
520697
523622
527451
528084
530507
530513
546804
549776
550615
554787
555054
555582
557537
559116
561484
564545
564706
566374
576157
579341
581098
586566
589684
591119
591954
593032
598649
598865
601672
603298
606778
608358
612964
618523
619663
622938
650806
663212
]
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 (421155 , 429143 , 429890 , 430018 , 430792 , 430989 , 431422 , 442783 , 443683 , 446135 , 455392 , 458010 , 458523 , 466097 , 466730 , 466989 , 467879 , 470989 , 473505 , 473912 , 474103 , 476103 , 492329 , 493163 , 493549 , 495126 , 496554 , 506305 , 512355 , 513625 , 513775 , 513976 , 519371 , 519548 , 520682 , 520697 , 523622 , 527451 , 528084 , 530507 , 530513 , 546804 , 549776 , 550615 , 554787 , 555054 , 555582 , 557537 , 559116 , 561484 , 564545 , 564706 , 566374 , 576157 , 579341 , 581098 , 586566 , 589684 , 591119 , 591954 , 593032 , 598649 , 598865 , 601672 , 603298 , 606778 , 608358 , 612964 , 618523 , 619663 , 622938 , 650806 , 663212 );
Copy