3
9.02 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
559968
573473
554428
60114
532246
630192
598515
564209
423134
565983
785154
605643
619414
492418
742477
566008
606688
623621
551953
572734
552042
510578
556398
558431
591278
637737
566073
571025
729856
562900
552605
558427
566003
522198
469213
513136
541586
623619
398018
539889
557512
586584
604844
418671
522188
565974
508769
493256
590953
595443
587315
633511
596856
511267
551089
577660
684211
566498
388915
652893
600151
612698
502533
]
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 (559968 , 573473 , 554428 , 60114 , 532246 , 630192 , 598515 , 564209 , 423134 , 565983 , 785154 , 605643 , 619414 , 492418 , 742477 , 566008 , 606688 , 623621 , 551953 , 572734 , 552042 , 510578 , 556398 , 558431 , 591278 , 637737 , 566073 , 571025 , 729856 , 562900 , 552605 , 558427 , 566003 , 522198 , 469213 , 513136 , 541586 , 623619 , 398018 , 539889 , 557512 , 586584 , 604844 , 418671 , 522188 , 565974 , 508769 , 493256 , 590953 , 595443 , 587315 , 633511 , 596856 , 511267 , 551089 , 577660 , 684211 , 566498 , 388915 , 652893 , 600151 , 612698 , 502533 );
Copy
4
2.59 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
60114
388915
398018
418671
423134
469213
492418
493256
502533
508769
510578
511267
513136
522188
522198
532246
539889
541586
551089
551953
552042
552605
554428
556398
557512
558427
558431
559968
562900
564209
565974
565983
566003
566008
566073
566498
571025
572734
573473
577660
586584
587315
590953
591278
595443
596856
598515
600151
604844
605643
606688
612698
619414
623619
623621
630192
633511
637737
652893
684211
729856
742477
785154
]
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 (60114 , 388915 , 398018 , 418671 , 423134 , 469213 , 492418 , 493256 , 502533 , 508769 , 510578 , 511267 , 513136 , 522188 , 522198 , 532246 , 539889 , 541586 , 551089 , 551953 , 552042 , 552605 , 554428 , 556398 , 557512 , 558427 , 558431 , 559968 , 562900 , 564209 , 565974 , 565983 , 566003 , 566008 , 566073 , 566498 , 571025 , 572734 , 573473 , 577660 , 586584 , 587315 , 590953 , 591278 , 595443 , 596856 , 598515 , 600151 , 604844 , 605643 , 606688 , 612698 , 619414 , 623619 , 623621 , 630192 , 633511 , 637737 , 652893 , 684211 , 729856 , 742477 , 785154 );
Copy
5
83.39 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
60114
388915
398018
418671
423134
469213
492418
493256
502533
508769
510578
511267
513136
522188
522198
532246
539889
541586
551089
551953
552042
552605
554428
556398
557512
558427
558431
559968
562900
564209
565974
565983
566003
566008
566073
566498
571025
572734
573473
577660
586584
587315
590953
591278
595443
596856
598515
600151
604844
605643
606688
612698
619414
623619
623621
630192
633511
637737
652893
684211
729856
742477
785154
]
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 (60114 , 388915 , 398018 , 418671 , 423134 , 469213 , 492418 , 493256 , 502533 , 508769 , 510578 , 511267 , 513136 , 522188 , 522198 , 532246 , 539889 , 541586 , 551089 , 551953 , 552042 , 552605 , 554428 , 556398 , 557512 , 558427 , 558431 , 559968 , 562900 , 564209 , 565974 , 565983 , 566003 , 566008 , 566073 , 566498 , 571025 , 572734 , 573473 , 577660 , 586584 , 587315 , 590953 , 591278 , 595443 , 596856 , 598515 , 600151 , 604844 , 605643 , 606688 , 612698 , 619414 , 623619 , 623621 , 630192 , 633511 , 637737 , 652893 , 684211 , 729856 , 742477 , 785154 );
Copy