3
10.18 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
535906
535920
500217
572223
781242
481379
530175
779764
721996
564239
571077
636466
719809
550535
811453
768960
469380
527203
545865
593068
723143
811159
811160
590597
616765
554808
563597
598997
737113
400194
464658
555809
697242
729392
766433
396485
622061
623691
462796
465647
497604
638482
616776
455628
408240
486451
501849
523774
652945
625582
473624
468897
521641
480413
501841
623292
506906
513685
566079
522133
476801
486413
590869
510109
582480
486864
]
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 (535906 , 535920 , 500217 , 572223 , 781242 , 481379 , 530175 , 779764 , 721996 , 564239 , 571077 , 636466 , 719809 , 550535 , 811453 , 768960 , 469380 , 527203 , 545865 , 593068 , 723143 , 811159 , 811160 , 590597 , 616765 , 554808 , 563597 , 598997 , 737113 , 400194 , 464658 , 555809 , 697242 , 729392 , 766433 , 396485 , 622061 , 623691 , 462796 , 465647 , 497604 , 638482 , 616776 , 455628 , 408240 , 486451 , 501849 , 523774 , 652945 , 625582 , 473624 , 468897 , 521641 , 480413 , 501841 , 623292 , 506906 , 513685 , 566079 , 522133 , 476801 , 486413 , 590869 , 510109 , 582480 , 486864 );
Copy
4
2.69 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
396485
400194
408240
455628
462796
464658
465647
468897
469380
473624
476801
480413
481379
486413
486451
486864
497604
500217
501841
501849
506906
510109
513685
521641
522133
523774
527203
530175
535906
535920
545865
550535
554808
555809
563597
564239
566079
571077
572223
582480
590597
590869
593068
598997
616765
616776
622061
623292
623691
625582
636466
638482
652945
697242
719809
721996
723143
729392
737113
766433
768960
779764
781242
811159
811160
811453
]
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 (396485 , 400194 , 408240 , 455628 , 462796 , 464658 , 465647 , 468897 , 469380 , 473624 , 476801 , 480413 , 481379 , 486413 , 486451 , 486864 , 497604 , 500217 , 501841 , 501849 , 506906 , 510109 , 513685 , 521641 , 522133 , 523774 , 527203 , 530175 , 535906 , 535920 , 545865 , 550535 , 554808 , 555809 , 563597 , 564239 , 566079 , 571077 , 572223 , 582480 , 590597 , 590869 , 593068 , 598997 , 616765 , 616776 , 622061 , 623292 , 623691 , 625582 , 636466 , 638482 , 652945 , 697242 , 719809 , 721996 , 723143 , 729392 , 737113 , 766433 , 768960 , 779764 , 781242 , 811159 , 811160 , 811453 );
Copy
5
99.75 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
396485
400194
408240
455628
462796
464658
465647
468897
469380
473624
476801
480413
481379
486413
486451
486864
497604
500217
501841
501849
506906
510109
513685
521641
522133
523774
527203
530175
535906
535920
545865
550535
554808
555809
563597
564239
566079
571077
572223
582480
590597
590869
593068
598997
616765
616776
622061
623292
623691
625582
636466
638482
652945
697242
719809
721996
723143
729392
737113
766433
768960
779764
781242
811159
811160
811453
]
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 (396485 , 400194 , 408240 , 455628 , 462796 , 464658 , 465647 , 468897 , 469380 , 473624 , 476801 , 480413 , 481379 , 486413 , 486451 , 486864 , 497604 , 500217 , 501841 , 501849 , 506906 , 510109 , 513685 , 521641 , 522133 , 523774 , 527203 , 530175 , 535906 , 535920 , 545865 , 550535 , 554808 , 555809 , 563597 , 564239 , 566079 , 571077 , 572223 , 582480 , 590597 , 590869 , 593068 , 598997 , 616765 , 616776 , 622061 , 623292 , 623691 , 625582 , 636466 , 638482 , 652945 , 697242 , 719809 , 721996 , 723143 , 729392 , 737113 , 766433 , 768960 , 779764 , 781242 , 811159 , 811160 , 811453 );
Copy