3
13.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
522506
557185
442352
430629
413126
532020
503859
518958
554376
549746
549748
561591
562031
562951
568582
549752
554377
442325
430623
489979
546124
683831
525750
659981
565859
598483
752820
532096
531489
582372
474777
526693
442829
554784
640136
445436
442768
540769
562028
564246
442756
532097
559173
542735
563079
571823
589592
410995
537020
482304
506048
584739
532095
539761
531439
520992
526762
683952
625436
597857
454865
442726
563006
531506
492320
520881
476903
442318
466989
]
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 (522506 , 557185 , 442352 , 430629 , 413126 , 532020 , 503859 , 518958 , 554376 , 549746 , 549748 , 561591 , 562031 , 562951 , 568582 , 549752 , 554377 , 442325 , 430623 , 489979 , 546124 , 683831 , 525750 , 659981 , 565859 , 598483 , 752820 , 532096 , 531489 , 582372 , 474777 , 526693 , 442829 , 554784 , 640136 , 445436 , 442768 , 540769 , 562028 , 564246 , 442756 , 532097 , 559173 , 542735 , 563079 , 571823 , 589592 , 410995 , 537020 , 482304 , 506048 , 584739 , 532095 , 539761 , 531439 , 520992 , 526762 , 683952 , 625436 , 597857 , 454865 , 442726 , 563006 , 531506 , 492320 , 520881 , 476903 , 442318 , 466989 );
Copy
4
2.50 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
410995
413126
430623
430629
442318
442325
442352
442726
442756
442768
442829
445436
454865
466989
474777
476903
482304
489979
492320
503859
506048
518958
520881
520992
522506
525750
526693
526762
531439
531489
531506
532020
532095
532096
532097
537020
539761
540769
542735
546124
549746
549748
549752
554376
554377
554784
557185
559173
561591
562028
562031
562951
563006
563079
564246
565859
568582
571823
582372
584739
589592
597857
598483
625436
640136
659981
683831
683952
752820
]
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 (410995 , 413126 , 430623 , 430629 , 442318 , 442325 , 442352 , 442726 , 442756 , 442768 , 442829 , 445436 , 454865 , 466989 , 474777 , 476903 , 482304 , 489979 , 492320 , 503859 , 506048 , 518958 , 520881 , 520992 , 522506 , 525750 , 526693 , 526762 , 531439 , 531489 , 531506 , 532020 , 532095 , 532096 , 532097 , 537020 , 539761 , 540769 , 542735 , 546124 , 549746 , 549748 , 549752 , 554376 , 554377 , 554784 , 557185 , 559173 , 561591 , 562028 , 562031 , 562951 , 563006 , 563079 , 564246 , 565859 , 568582 , 571823 , 582372 , 584739 , 589592 , 597857 , 598483 , 625436 , 640136 , 659981 , 683831 , 683952 , 752820 );
Copy
5
114.28 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
410995
413126
430623
430629
442318
442325
442352
442726
442756
442768
442829
445436
454865
466989
474777
476903
482304
489979
492320
503859
506048
518958
520881
520992
522506
525750
526693
526762
531439
531489
531506
532020
532095
532096
532097
537020
539761
540769
542735
546124
549746
549748
549752
554376
554377
554784
557185
559173
561591
562028
562031
562951
563006
563079
564246
565859
568582
571823
582372
584739
589592
597857
598483
625436
640136
659981
683831
683952
752820
]
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 (410995 , 413126 , 430623 , 430629 , 442318 , 442325 , 442352 , 442726 , 442756 , 442768 , 442829 , 445436 , 454865 , 466989 , 474777 , 476903 , 482304 , 489979 , 492320 , 503859 , 506048 , 518958 , 520881 , 520992 , 522506 , 525750 , 526693 , 526762 , 531439 , 531489 , 531506 , 532020 , 532095 , 532096 , 532097 , 537020 , 539761 , 540769 , 542735 , 546124 , 549746 , 549748 , 549752 , 554376 , 554377 , 554784 , 557185 , 559173 , 561591 , 562028 , 562031 , 562951 , 563006 , 563079 , 564246 , 565859 , 568582 , 571823 , 582372 , 584739 , 589592 , 597857 , 598483 , 625436 , 640136 , 659981 , 683831 , 683952 , 752820 );
Copy