3
12.83 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
795398
486741
794442
744405
729072
777815
811365
666895
676638
630550
600297
88505
716418
807057
675000
826238
539265
560949
573983
718089
812373
730149
621737
666734
777924
793400
758097
777533
434544
524352
522278
581092
580282
584226
779986
741060
742100
759014
434771
467646
511204
666850
545355
415753
510229
575827
555485
557706
580672
541582
724410
509051
483687
639810
486873
555988
560969
723175
726864
527641
432637
536865
534386
605794
619849
435922
484478
542595
585751
439606
564327
679004
591680
584461
]
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 (795398 , 486741 , 794442 , 744405 , 729072 , 777815 , 811365 , 666895 , 676638 , 630550 , 600297 , 88505 , 716418 , 807057 , 675000 , 826238 , 539265 , 560949 , 573983 , 718089 , 812373 , 730149 , 621737 , 666734 , 777924 , 793400 , 758097 , 777533 , 434544 , 524352 , 522278 , 581092 , 580282 , 584226 , 779986 , 741060 , 742100 , 759014 , 434771 , 467646 , 511204 , 666850 , 545355 , 415753 , 510229 , 575827 , 555485 , 557706 , 580672 , 541582 , 724410 , 509051 , 483687 , 639810 , 486873 , 555988 , 560969 , 723175 , 726864 , 527641 , 432637 , 536865 , 534386 , 605794 , 619849 , 435922 , 484478 , 542595 , 585751 , 439606 , 564327 , 679004 , 591680 , 584461 );
Copy
4
2.72 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
88505
415753
432637
434544
434771
435922
439606
467646
483687
484478
486741
486873
509051
510229
511204
522278
524352
527641
534386
536865
539265
541582
542595
545355
555485
555988
557706
560949
560969
564327
573983
575827
580282
580672
581092
584226
584461
585751
591680
600297
605794
619849
621737
630550
639810
666734
666850
666895
675000
676638
679004
716418
718089
723175
724410
726864
729072
730149
741060
742100
744405
758097
759014
777533
777815
777924
779986
793400
794442
795398
807057
811365
812373
826238
]
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 (88505 , 415753 , 432637 , 434544 , 434771 , 435922 , 439606 , 467646 , 483687 , 484478 , 486741 , 486873 , 509051 , 510229 , 511204 , 522278 , 524352 , 527641 , 534386 , 536865 , 539265 , 541582 , 542595 , 545355 , 555485 , 555988 , 557706 , 560949 , 560969 , 564327 , 573983 , 575827 , 580282 , 580672 , 581092 , 584226 , 584461 , 585751 , 591680 , 600297 , 605794 , 619849 , 621737 , 630550 , 639810 , 666734 , 666850 , 666895 , 675000 , 676638 , 679004 , 716418 , 718089 , 723175 , 724410 , 726864 , 729072 , 730149 , 741060 , 742100 , 744405 , 758097 , 759014 , 777533 , 777815 , 777924 , 779986 , 793400 , 794442 , 795398 , 807057 , 811365 , 812373 , 826238 );
Copy
5
85.71 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
88505
415753
432637
434544
434771
435922
439606
467646
483687
484478
486741
486873
509051
510229
511204
522278
524352
527641
534386
536865
539265
541582
542595
545355
555485
555988
557706
560949
560969
564327
573983
575827
580282
580672
581092
584226
584461
585751
591680
600297
605794
619849
621737
630550
639810
666734
666850
666895
675000
676638
679004
716418
718089
723175
724410
726864
729072
730149
741060
742100
744405
758097
759014
777533
777815
777924
779986
793400
794442
795398
807057
811365
812373
826238
]
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 (88505 , 415753 , 432637 , 434544 , 434771 , 435922 , 439606 , 467646 , 483687 , 484478 , 486741 , 486873 , 509051 , 510229 , 511204 , 522278 , 524352 , 527641 , 534386 , 536865 , 539265 , 541582 , 542595 , 545355 , 555485 , 555988 , 557706 , 560949 , 560969 , 564327 , 573983 , 575827 , 580282 , 580672 , 581092 , 584226 , 584461 , 585751 , 591680 , 600297 , 605794 , 619849 , 621737 , 630550 , 639810 , 666734 , 666850 , 666895 , 675000 , 676638 , 679004 , 716418 , 718089 , 723175 , 724410 , 726864 , 729072 , 730149 , 741060 , 742100 , 744405 , 758097 , 759014 , 777533 , 777815 , 777924 , 779986 , 793400 , 794442 , 795398 , 807057 , 811365 , 812373 , 826238 );
Copy