3
217.21 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
694641
563888
622302
756768
429048
463266
476623
462556
507363
651561
630135
583681
624909
452463
506445
525994
513993
464075
489113
571193
551816
565077
429069
429114
469432
500551
429147
525117
652125
517554
502326
577778
527966
587946
452483
577716
581423
585798
468779
483500
502598
530572
457007
510293
520984
451743
516993
515205
614058
668525
452480
596739
458619
452472
517184
603888
503330
570708
593965
517175
603047
603878
517665
577909
563884
]
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 (694641 , 563888 , 622302 , 756768 , 429048 , 463266 , 476623 , 462556 , 507363 , 651561 , 630135 , 583681 , 624909 , 452463 , 506445 , 525994 , 513993 , 464075 , 489113 , 571193 , 551816 , 565077 , 429069 , 429114 , 469432 , 500551 , 429147 , 525117 , 652125 , 517554 , 502326 , 577778 , 527966 , 587946 , 452483 , 577716 , 581423 , 585798 , 468779 , 483500 , 502598 , 530572 , 457007 , 510293 , 520984 , 451743 , 516993 , 515205 , 614058 , 668525 , 452480 , 596739 , 458619 , 452472 , 517184 , 603888 , 503330 , 570708 , 593965 , 517175 , 603047 , 603878 , 517665 , 577909 , 563884 );
Copy
4
2.60 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
429048
429069
429114
429147
451743
452463
452472
452480
452483
457007
458619
462556
463266
464075
468779
469432
476623
483500
489113
500551
502326
502598
503330
506445
507363
510293
513993
515205
516993
517175
517184
517554
517665
520984
525117
525994
527966
530572
551816
563884
563888
565077
570708
571193
577716
577778
577909
581423
583681
585798
587946
593965
596739
603047
603878
603888
614058
622302
624909
630135
651561
652125
668525
694641
756768
]
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 (429048 , 429069 , 429114 , 429147 , 451743 , 452463 , 452472 , 452480 , 452483 , 457007 , 458619 , 462556 , 463266 , 464075 , 468779 , 469432 , 476623 , 483500 , 489113 , 500551 , 502326 , 502598 , 503330 , 506445 , 507363 , 510293 , 513993 , 515205 , 516993 , 517175 , 517184 , 517554 , 517665 , 520984 , 525117 , 525994 , 527966 , 530572 , 551816 , 563884 , 563888 , 565077 , 570708 , 571193 , 577716 , 577778 , 577909 , 581423 , 583681 , 585798 , 587946 , 593965 , 596739 , 603047 , 603878 , 603888 , 614058 , 622302 , 624909 , 630135 , 651561 , 652125 , 668525 , 694641 , 756768 );
Copy
5
71.76 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
429048
429069
429114
429147
451743
452463
452472
452480
452483
457007
458619
462556
463266
464075
468779
469432
476623
483500
489113
500551
502326
502598
503330
506445
507363
510293
513993
515205
516993
517175
517184
517554
517665
520984
525117
525994
527966
530572
551816
563884
563888
565077
570708
571193
577716
577778
577909
581423
583681
585798
587946
593965
596739
603047
603878
603888
614058
622302
624909
630135
651561
652125
668525
694641
756768
]
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 (429048 , 429069 , 429114 , 429147 , 451743 , 452463 , 452472 , 452480 , 452483 , 457007 , 458619 , 462556 , 463266 , 464075 , 468779 , 469432 , 476623 , 483500 , 489113 , 500551 , 502326 , 502598 , 503330 , 506445 , 507363 , 510293 , 513993 , 515205 , 516993 , 517175 , 517184 , 517554 , 517665 , 520984 , 525117 , 525994 , 527966 , 530572 , 551816 , 563884 , 563888 , 565077 , 570708 , 571193 , 577716 , 577778 , 577909 , 581423 , 583681 , 585798 , 587946 , 593965 , 596739 , 603047 , 603878 , 603888 , 614058 , 622302 , 624909 , 630135 , 651561 , 652125 , 668525 , 694641 , 756768 );
Copy