3
13.54 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
818252
564303
615716
738277
575014
711005
694476
783038
666850
683052
801524
531225
717162
695939
544833
690786
744656
565557
716878
660365
531126
705702
554867
545461
386697
468339
533490
785580
634116
569929
698407
536870
591893
592384
727751
485175
530696
423663
533559
591582
805429
647942
642665
419989
530381
643112
476143
542583
647954
520028
599957
646771
642658
419862
533372
648235
531182
600019
600271
666865
634115
545611
566786
533746
527273
554392
]
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 (818252 , 564303 , 615716 , 738277 , 575014 , 711005 , 694476 , 783038 , 666850 , 683052 , 801524 , 531225 , 717162 , 695939 , 544833 , 690786 , 744656 , 565557 , 716878 , 660365 , 531126 , 705702 , 554867 , 545461 , 386697 , 468339 , 533490 , 785580 , 634116 , 569929 , 698407 , 536870 , 591893 , 592384 , 727751 , 485175 , 530696 , 423663 , 533559 , 591582 , 805429 , 647942 , 642665 , 419989 , 530381 , 643112 , 476143 , 542583 , 647954 , 520028 , 599957 , 646771 , 642658 , 419862 , 533372 , 648235 , 531182 , 600019 , 600271 , 666865 , 634115 , 545611 , 566786 , 533746 , 527273 , 554392 );
Copy
4
3.61 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
386697
419862
419989
423663
468339
476143
485175
520028
527273
530381
530696
531126
531182
531225
533372
533490
533559
533746
536870
542583
544833
545461
545611
554392
554867
564303
565557
566786
569929
575014
591582
591893
592384
599957
600019
600271
615716
634115
634116
642658
642665
643112
646771
647942
647954
648235
660365
666850
666865
683052
690786
694476
695939
698407
705702
711005
716878
717162
727751
738277
744656
783038
785580
801524
805429
818252
]
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 (386697 , 419862 , 419989 , 423663 , 468339 , 476143 , 485175 , 520028 , 527273 , 530381 , 530696 , 531126 , 531182 , 531225 , 533372 , 533490 , 533559 , 533746 , 536870 , 542583 , 544833 , 545461 , 545611 , 554392 , 554867 , 564303 , 565557 , 566786 , 569929 , 575014 , 591582 , 591893 , 592384 , 599957 , 600019 , 600271 , 615716 , 634115 , 634116 , 642658 , 642665 , 643112 , 646771 , 647942 , 647954 , 648235 , 660365 , 666850 , 666865 , 683052 , 690786 , 694476 , 695939 , 698407 , 705702 , 711005 , 716878 , 717162 , 727751 , 738277 , 744656 , 783038 , 785580 , 801524 , 805429 , 818252 );
Copy
5
77.19 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
386697
419862
419989
423663
468339
476143
485175
520028
527273
530381
530696
531126
531182
531225
533372
533490
533559
533746
536870
542583
544833
545461
545611
554392
554867
564303
565557
566786
569929
575014
591582
591893
592384
599957
600019
600271
615716
634115
634116
642658
642665
643112
646771
647942
647954
648235
660365
666850
666865
683052
690786
694476
695939
698407
705702
711005
716878
717162
727751
738277
744656
783038
785580
801524
805429
818252
]
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 (386697 , 419862 , 419989 , 423663 , 468339 , 476143 , 485175 , 520028 , 527273 , 530381 , 530696 , 531126 , 531182 , 531225 , 533372 , 533490 , 533559 , 533746 , 536870 , 542583 , 544833 , 545461 , 545611 , 554392 , 554867 , 564303 , 565557 , 566786 , 569929 , 575014 , 591582 , 591893 , 592384 , 599957 , 600019 , 600271 , 615716 , 634115 , 634116 , 642658 , 642665 , 643112 , 646771 , 647942 , 647954 , 648235 , 660365 , 666850 , 666865 , 683052 , 690786 , 694476 , 695939 , 698407 , 705702 , 711005 , 716878 , 717162 , 727751 , 738277 , 744656 , 783038 , 785580 , 801524 , 805429 , 818252 );
Copy