3
220.68 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
549921
814136
614215
737728
604475
541217
471927
382330
826151
614384
789090
591599
822254
560751
560546
738243
396579
536370
821626
685692
736444
556101
822167
542717
568782
514953
705715
655601
725262
469900
780506
448844
496800
476818
477800
559150
562262
554396
580757
592106
594807
614244
479482
449644
488716
517858
418707
477790
552252
543766
562265
623741
601893
488844
510609
481591
559236
582722
619012
605224
423920
521970
498827
517869
562266
561089
474013
436040
525542
525203
579417
551081
521866
568741
617132
623337
]
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 (549921 , 814136 , 614215 , 737728 , 604475 , 541217 , 471927 , 382330 , 826151 , 614384 , 789090 , 591599 , 822254 , 560751 , 560546 , 738243 , 396579 , 536370 , 821626 , 685692 , 736444 , 556101 , 822167 , 542717 , 568782 , 514953 , 705715 , 655601 , 725262 , 469900 , 780506 , 448844 , 496800 , 476818 , 477800 , 559150 , 562262 , 554396 , 580757 , 592106 , 594807 , 614244 , 479482 , 449644 , 488716 , 517858 , 418707 , 477790 , 552252 , 543766 , 562265 , 623741 , 601893 , 488844 , 510609 , 481591 , 559236 , 582722 , 619012 , 605224 , 423920 , 521970 , 498827 , 517869 , 562266 , 561089 , 474013 , 436040 , 525542 , 525203 , 579417 , 551081 , 521866 , 568741 , 617132 , 623337 );
Copy
4
2.68 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
382330
396579
418707
423920
436040
448844
449644
469900
471927
474013
476818
477790
477800
479482
481591
488716
488844
496800
498827
510609
514953
517858
517869
521866
521970
525203
525542
536370
541217
542717
543766
549921
551081
552252
554396
556101
559150
559236
560546
560751
561089
562262
562265
562266
568741
568782
579417
580757
582722
591599
592106
594807
601893
604475
605224
614215
614244
614384
617132
619012
623337
623741
655601
685692
705715
725262
736444
737728
738243
780506
789090
814136
821626
822167
822254
]
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 (382330 , 396579 , 418707 , 423920 , 436040 , 448844 , 449644 , 469900 , 471927 , 474013 , 476818 , 477790 , 477800 , 479482 , 481591 , 488716 , 488844 , 496800 , 498827 , 510609 , 514953 , 517858 , 517869 , 521866 , 521970 , 525203 , 525542 , 536370 , 541217 , 542717 , 543766 , 549921 , 551081 , 552252 , 554396 , 556101 , 559150 , 559236 , 560546 , 560751 , 561089 , 562262 , 562265 , 562266 , 568741 , 568782 , 579417 , 580757 , 582722 , 591599 , 592106 , 594807 , 601893 , 604475 , 605224 , 614215 , 614244 , 614384 , 617132 , 619012 , 623337 , 623741 , 655601 , 685692 , 705715 , 725262 , 736444 , 737728 , 738243 , 780506 , 789090 , 814136 , 821626 , 822167 , 822254 );
Copy
5
97.26 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
382330
396579
418707
423920
436040
448844
449644
469900
471927
474013
476818
477790
477800
479482
481591
488716
488844
496800
498827
510609
514953
517858
517869
521866
521970
525203
525542
536370
541217
542717
543766
549921
551081
552252
554396
556101
559150
559236
560546
560751
561089
562262
562265
562266
568741
568782
579417
580757
582722
591599
592106
594807
601893
604475
605224
614215
614244
614384
617132
619012
623337
623741
655601
685692
705715
725262
736444
737728
738243
780506
789090
814136
821626
822167
822254
]
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 (382330 , 396579 , 418707 , 423920 , 436040 , 448844 , 449644 , 469900 , 471927 , 474013 , 476818 , 477790 , 477800 , 479482 , 481591 , 488716 , 488844 , 496800 , 498827 , 510609 , 514953 , 517858 , 517869 , 521866 , 521970 , 525203 , 525542 , 536370 , 541217 , 542717 , 543766 , 549921 , 551081 , 552252 , 554396 , 556101 , 559150 , 559236 , 560546 , 560751 , 561089 , 562262 , 562265 , 562266 , 568741 , 568782 , 579417 , 580757 , 582722 , 591599 , 592106 , 594807 , 601893 , 604475 , 605224 , 614215 , 614244 , 614384 , 617132 , 619012 , 623337 , 623741 , 655601 , 685692 , 705715 , 725262 , 736444 , 737728 , 738243 , 780506 , 789090 , 814136 , 821626 , 822167 , 822254 );
Copy