3
12.74 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
668151
591548
626030
809576
531500
579292
561577
506060
566228
610007
522506
557185
442352
430629
413126
532020
503859
518958
549746
561591
562951
549752
442325
430623
546124
683831
525750
659981
565859
598483
752820
532096
531489
582372
474777
526693
442829
554784
640136
445436
442768
562028
564246
442756
532097
559173
542735
563079
571823
589592
410995
537020
482304
506048
584739
539761
531439
520992
526762
683952
625436
597857
454865
442726
563006
531506
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 (668151 , 591548 , 626030 , 809576 , 531500 , 579292 , 561577 , 506060 , 566228 , 610007 , 522506 , 557185 , 442352 , 430629 , 413126 , 532020 , 503859 , 518958 , 549746 , 561591 , 562951 , 549752 , 442325 , 430623 , 546124 , 683831 , 525750 , 659981 , 565859 , 598483 , 752820 , 532096 , 531489 , 582372 , 474777 , 526693 , 442829 , 554784 , 640136 , 445436 , 442768 , 562028 , 564246 , 442756 , 532097 , 559173 , 542735 , 563079 , 571823 , 589592 , 410995 , 537020 , 482304 , 506048 , 584739 , 539761 , 531439 , 520992 , 526762 , 683952 , 625436 , 597857 , 454865 , 442726 , 563006 , 531506 , 476903 , 442318 , 466989 );
Copy
4
2.71 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
503859
506048
506060
518958
520992
522506
525750
526693
526762
531439
531489
531500
531506
532020
532096
532097
537020
539761
542735
546124
549746
549752
554784
557185
559173
561577
561591
562028
562951
563006
563079
564246
565859
566228
571823
579292
582372
584739
589592
591548
597857
598483
610007
625436
626030
640136
659981
668151
683831
683952
752820
809576
]
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 , 503859 , 506048 , 506060 , 518958 , 520992 , 522506 , 525750 , 526693 , 526762 , 531439 , 531489 , 531500 , 531506 , 532020 , 532096 , 532097 , 537020 , 539761 , 542735 , 546124 , 549746 , 549752 , 554784 , 557185 , 559173 , 561577 , 561591 , 562028 , 562951 , 563006 , 563079 , 564246 , 565859 , 566228 , 571823 , 579292 , 582372 , 584739 , 589592 , 591548 , 597857 , 598483 , 610007 , 625436 , 626030 , 640136 , 659981 , 668151 , 683831 , 683952 , 752820 , 809576 );
Copy
5
77.90 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
503859
506048
506060
518958
520992
522506
525750
526693
526762
531439
531489
531500
531506
532020
532096
532097
537020
539761
542735
546124
549746
549752
554784
557185
559173
561577
561591
562028
562951
563006
563079
564246
565859
566228
571823
579292
582372
584739
589592
591548
597857
598483
610007
625436
626030
640136
659981
668151
683831
683952
752820
809576
]
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 , 503859 , 506048 , 506060 , 518958 , 520992 , 522506 , 525750 , 526693 , 526762 , 531439 , 531489 , 531500 , 531506 , 532020 , 532096 , 532097 , 537020 , 539761 , 542735 , 546124 , 549746 , 549752 , 554784 , 557185 , 559173 , 561577 , 561591 , 562028 , 562951 , 563006 , 563079 , 564246 , 565859 , 566228 , 571823 , 579292 , 582372 , 584739 , 589592 , 591548 , 597857 , 598483 , 610007 , 625436 , 626030 , 640136 , 659981 , 668151 , 683831 , 683952 , 752820 , 809576 );
Copy