3
13.48 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
584714
391562
453601
95943
518563
525485
619403
461948
492660
584709
457470
548228
551916
541636
551477
621712
622373
622381
443487
479971
423816
397064
477058
462527
559121
747140
476244
514600
562836
556029
576645
671746
477730
502817
496283
468919
466869
97045
624195
473889
556054
443822
576720
494567
463099
584712
541635
559120
670951
571201
541651
571244
448367
542196
576723
554639
518468
576653
391941
490440
541871
542192
541688
485374
559127
559132
]
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 (584714 , 391562 , 453601 , 95943 , 518563 , 525485 , 619403 , 461948 , 492660 , 584709 , 457470 , 548228 , 551916 , 541636 , 551477 , 621712 , 622373 , 622381 , 443487 , 479971 , 423816 , 397064 , 477058 , 462527 , 559121 , 747140 , 476244 , 514600 , 562836 , 556029 , 576645 , 671746 , 477730 , 502817 , 496283 , 468919 , 466869 , 97045 , 624195 , 473889 , 556054 , 443822 , 576720 , 494567 , 463099 , 584712 , 541635 , 559120 , 670951 , 571201 , 541651 , 571244 , 448367 , 542196 , 576723 , 554639 , 518468 , 576653 , 391941 , 490440 , 541871 , 542192 , 541688 , 485374 , 559127 , 559132 );
Copy
4
211.74 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
95943
97045
391562
391941
397064
423816
443487
443822
448367
453601
457470
461948
462527
463099
466869
468919
473889
476244
477058
477730
479971
485374
490440
492660
494567
496283
502817
514600
518468
518563
525485
541635
541636
541651
541688
541871
542192
542196
548228
551477
551916
554639
556029
556054
559120
559121
559127
559132
562836
571201
571244
576645
576653
576720
576723
584709
584712
584714
619403
621712
622373
622381
624195
670951
671746
747140
]
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 (95943 , 97045 , 391562 , 391941 , 397064 , 423816 , 443487 , 443822 , 448367 , 453601 , 457470 , 461948 , 462527 , 463099 , 466869 , 468919 , 473889 , 476244 , 477058 , 477730 , 479971 , 485374 , 490440 , 492660 , 494567 , 496283 , 502817 , 514600 , 518468 , 518563 , 525485 , 541635 , 541636 , 541651 , 541688 , 541871 , 542192 , 542196 , 548228 , 551477 , 551916 , 554639 , 556029 , 556054 , 559120 , 559121 , 559127 , 559132 , 562836 , 571201 , 571244 , 576645 , 576653 , 576720 , 576723 , 584709 , 584712 , 584714 , 619403 , 621712 , 622373 , 622381 , 624195 , 670951 , 671746 , 747140 );
Copy
5
102.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
95943
97045
391562
391941
397064
423816
443487
443822
448367
453601
457470
461948
462527
463099
466869
468919
473889
476244
477058
477730
479971
485374
490440
492660
494567
496283
502817
514600
518468
518563
525485
541635
541636
541651
541688
541871
542192
542196
548228
551477
551916
554639
556029
556054
559120
559121
559127
559132
562836
571201
571244
576645
576653
576720
576723
584709
584712
584714
619403
621712
622373
622381
624195
670951
671746
747140
]
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 (95943 , 97045 , 391562 , 391941 , 397064 , 423816 , 443487 , 443822 , 448367 , 453601 , 457470 , 461948 , 462527 , 463099 , 466869 , 468919 , 473889 , 476244 , 477058 , 477730 , 479971 , 485374 , 490440 , 492660 , 494567 , 496283 , 502817 , 514600 , 518468 , 518563 , 525485 , 541635 , 541636 , 541651 , 541688 , 541871 , 542192 , 542196 , 548228 , 551477 , 551916 , 554639 , 556029 , 556054 , 559120 , 559121 , 559127 , 559132 , 562836 , 571201 , 571244 , 576645 , 576653 , 576720 , 576723 , 584709 , 584712 , 584714 , 619403 , 621712 , 622373 , 622381 , 624195 , 670951 , 671746 , 747140 );
Copy