3
10.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
639037
729105
730363
769909
757062
800597
814674
695889
744099
441409
709545
613443
621250
509645
799351
761046
452625
445530
432782
445226
447486
495417
799127
397193
457434
788136
584415
397887
784330
699976
814496
802195
576934
761462
781357
743576
775219
631057
798996
721166
668276
805525
739281
704709
76043
627305
535724
537960
476027
665929
446161
537821
411468
435599
391170
486270
385296
548304
406210
565185
587933
610303
589698
636268
616864
603971
]
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 (639037 , 729105 , 730363 , 769909 , 757062 , 800597 , 814674 , 695889 , 744099 , 441409 , 709545 , 613443 , 621250 , 509645 , 799351 , 761046 , 452625 , 445530 , 432782 , 445226 , 447486 , 495417 , 799127 , 397193 , 457434 , 788136 , 584415 , 397887 , 784330 , 699976 , 814496 , 802195 , 576934 , 761462 , 781357 , 743576 , 775219 , 631057 , 798996 , 721166 , 668276 , 805525 , 739281 , 704709 , 76043 , 627305 , 535724 , 537960 , 476027 , 665929 , 446161 , 537821 , 411468 , 435599 , 391170 , 486270 , 385296 , 548304 , 406210 , 565185 , 587933 , 610303 , 589698 , 636268 , 616864 , 603971 );
Copy
4
2.38 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
76043
385296
391170
397193
397887
406210
411468
432782
435599
441409
445226
445530
446161
447486
452625
457434
476027
486270
495417
509645
535724
537821
537960
548304
565185
576934
584415
587933
589698
603971
610303
613443
616864
621250
627305
631057
636268
639037
665929
668276
695889
699976
704709
709545
721166
729105
730363
739281
743576
744099
757062
761046
761462
769909
775219
781357
784330
788136
798996
799127
799351
800597
802195
805525
814496
814674
]
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 (76043 , 385296 , 391170 , 397193 , 397887 , 406210 , 411468 , 432782 , 435599 , 441409 , 445226 , 445530 , 446161 , 447486 , 452625 , 457434 , 476027 , 486270 , 495417 , 509645 , 535724 , 537821 , 537960 , 548304 , 565185 , 576934 , 584415 , 587933 , 589698 , 603971 , 610303 , 613443 , 616864 , 621250 , 627305 , 631057 , 636268 , 639037 , 665929 , 668276 , 695889 , 699976 , 704709 , 709545 , 721166 , 729105 , 730363 , 739281 , 743576 , 744099 , 757062 , 761046 , 761462 , 769909 , 775219 , 781357 , 784330 , 788136 , 798996 , 799127 , 799351 , 800597 , 802195 , 805525 , 814496 , 814674 );
Copy
5
91.95 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
76043
385296
391170
397193
397887
406210
411468
432782
435599
441409
445226
445530
446161
447486
452625
457434
476027
486270
495417
509645
535724
537821
537960
548304
565185
576934
584415
587933
589698
603971
610303
613443
616864
621250
627305
631057
636268
639037
665929
668276
695889
699976
704709
709545
721166
729105
730363
739281
743576
744099
757062
761046
761462
769909
775219
781357
784330
788136
798996
799127
799351
800597
802195
805525
814496
814674
]
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 (76043 , 385296 , 391170 , 397193 , 397887 , 406210 , 411468 , 432782 , 435599 , 441409 , 445226 , 445530 , 446161 , 447486 , 452625 , 457434 , 476027 , 486270 , 495417 , 509645 , 535724 , 537821 , 537960 , 548304 , 565185 , 576934 , 584415 , 587933 , 589698 , 603971 , 610303 , 613443 , 616864 , 621250 , 627305 , 631057 , 636268 , 639037 , 665929 , 668276 , 695889 , 699976 , 704709 , 709545 , 721166 , 729105 , 730363 , 739281 , 743576 , 744099 , 757062 , 761046 , 761462 , 769909 , 775219 , 781357 , 784330 , 788136 , 798996 , 799127 , 799351 , 800597 , 802195 , 805525 , 814496 , 814674 );
Copy