3
11.86 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
596945
601175
613637
759464
410861
469426
471888
521391
532580
511684
527592
575656
542284
562951
579425
541188
547797
666008
640152
604805
425640
477881
516094
663297
539479
514097
562802
583238
583329
555168
578682
673577
565631
569928
595054
603055
404275
450766
503587
525782
539783
557534
662653
660834
653101
556006
572259
602492
623702
483406
532531
575661
550579
452979
506602
532572
583482
604219
609238
654671
591198
599368
639060
500581
614074
624428
]
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 (596945 , 601175 , 613637 , 759464 , 410861 , 469426 , 471888 , 521391 , 532580 , 511684 , 527592 , 575656 , 542284 , 562951 , 579425 , 541188 , 547797 , 666008 , 640152 , 604805 , 425640 , 477881 , 516094 , 663297 , 539479 , 514097 , 562802 , 583238 , 583329 , 555168 , 578682 , 673577 , 565631 , 569928 , 595054 , 603055 , 404275 , 450766 , 503587 , 525782 , 539783 , 557534 , 662653 , 660834 , 653101 , 556006 , 572259 , 602492 , 623702 , 483406 , 532531 , 575661 , 550579 , 452979 , 506602 , 532572 , 583482 , 604219 , 609238 , 654671 , 591198 , 599368 , 639060 , 500581 , 614074 , 624428 );
Copy
4
2.67 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
404275
410861
425640
450766
452979
469426
471888
477881
483406
500581
503587
506602
511684
514097
516094
521391
525782
527592
532531
532572
532580
539479
539783
541188
542284
547797
550579
555168
556006
557534
562802
562951
565631
569928
572259
575656
575661
578682
579425
583238
583329
583482
591198
595054
596945
599368
601175
602492
603055
604219
604805
609238
613637
614074
623702
624428
639060
640152
653101
654671
660834
662653
663297
666008
673577
759464
]
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 (404275 , 410861 , 425640 , 450766 , 452979 , 469426 , 471888 , 477881 , 483406 , 500581 , 503587 , 506602 , 511684 , 514097 , 516094 , 521391 , 525782 , 527592 , 532531 , 532572 , 532580 , 539479 , 539783 , 541188 , 542284 , 547797 , 550579 , 555168 , 556006 , 557534 , 562802 , 562951 , 565631 , 569928 , 572259 , 575656 , 575661 , 578682 , 579425 , 583238 , 583329 , 583482 , 591198 , 595054 , 596945 , 599368 , 601175 , 602492 , 603055 , 604219 , 604805 , 609238 , 613637 , 614074 , 623702 , 624428 , 639060 , 640152 , 653101 , 654671 , 660834 , 662653 , 663297 , 666008 , 673577 , 759464 );
Copy
5
77.70 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
404275
410861
425640
450766
452979
469426
471888
477881
483406
500581
503587
506602
511684
514097
516094
521391
525782
527592
532531
532572
532580
539479
539783
541188
542284
547797
550579
555168
556006
557534
562802
562951
565631
569928
572259
575656
575661
578682
579425
583238
583329
583482
591198
595054
596945
599368
601175
602492
603055
604219
604805
609238
613637
614074
623702
624428
639060
640152
653101
654671
660834
662653
663297
666008
673577
759464
]
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 (404275 , 410861 , 425640 , 450766 , 452979 , 469426 , 471888 , 477881 , 483406 , 500581 , 503587 , 506602 , 511684 , 514097 , 516094 , 521391 , 525782 , 527592 , 532531 , 532572 , 532580 , 539479 , 539783 , 541188 , 542284 , 547797 , 550579 , 555168 , 556006 , 557534 , 562802 , 562951 , 565631 , 569928 , 572259 , 575656 , 575661 , 578682 , 579425 , 583238 , 583329 , 583482 , 591198 , 595054 , 596945 , 599368 , 601175 , 602492 , 603055 , 604219 , 604805 , 609238 , 613637 , 614074 , 623702 , 624428 , 639060 , 640152 , 653101 , 654671 , 660834 , 662653 , 663297 , 666008 , 673577 , 759464 );
Copy