3
8.96 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
576164
768491
614006
493080
795484
482193
500022
598795
544518
500597
538333
540807
613288
789775
800439
571378
365872
700884
766584
457381
808290
814521
701205
151132
696070
782989
803877
758028
501316
480011
429815
626067
454537
808297
451490
514193
572128
507145
598626
545481
574734
512378
435369
467325
540799
498183
518357
564647
596652
556529
467290
523815
619318
599827
563929
528083
482321
603812
613401
581571
609259
512050
586575
464328
]
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 (576164 , 768491 , 614006 , 493080 , 795484 , 482193 , 500022 , 598795 , 544518 , 500597 , 538333 , 540807 , 613288 , 789775 , 800439 , 571378 , 365872 , 700884 , 766584 , 457381 , 808290 , 814521 , 701205 , 151132 , 696070 , 782989 , 803877 , 758028 , 501316 , 480011 , 429815 , 626067 , 454537 , 808297 , 451490 , 514193 , 572128 , 507145 , 598626 , 545481 , 574734 , 512378 , 435369 , 467325 , 540799 , 498183 , 518357 , 564647 , 596652 , 556529 , 467290 , 523815 , 619318 , 599827 , 563929 , 528083 , 482321 , 603812 , 613401 , 581571 , 609259 , 512050 , 586575 , 464328 );
Copy
4
2.09 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
151132
365872
429815
435369
451490
454537
457381
464328
467290
467325
480011
482193
482321
493080
498183
500022
500597
501316
507145
512050
512378
514193
518357
523815
528083
538333
540799
540807
544518
545481
556529
563929
564647
571378
572128
574734
576164
581571
586575
596652
598626
598795
599827
603812
609259
613288
613401
614006
619318
626067
696070
700884
701205
758028
766584
768491
782989
789775
795484
800439
803877
808290
808297
814521
]
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 (151132 , 365872 , 429815 , 435369 , 451490 , 454537 , 457381 , 464328 , 467290 , 467325 , 480011 , 482193 , 482321 , 493080 , 498183 , 500022 , 500597 , 501316 , 507145 , 512050 , 512378 , 514193 , 518357 , 523815 , 528083 , 538333 , 540799 , 540807 , 544518 , 545481 , 556529 , 563929 , 564647 , 571378 , 572128 , 574734 , 576164 , 581571 , 586575 , 596652 , 598626 , 598795 , 599827 , 603812 , 609259 , 613288 , 613401 , 614006 , 619318 , 626067 , 696070 , 700884 , 701205 , 758028 , 766584 , 768491 , 782989 , 789775 , 795484 , 800439 , 803877 , 808290 , 808297 , 814521 );
Copy
5
118.34 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
151132
365872
429815
435369
451490
454537
457381
464328
467290
467325
480011
482193
482321
493080
498183
500022
500597
501316
507145
512050
512378
514193
518357
523815
528083
538333
540799
540807
544518
545481
556529
563929
564647
571378
572128
574734
576164
581571
586575
596652
598626
598795
599827
603812
609259
613288
613401
614006
619318
626067
696070
700884
701205
758028
766584
768491
782989
789775
795484
800439
803877
808290
808297
814521
]
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 (151132 , 365872 , 429815 , 435369 , 451490 , 454537 , 457381 , 464328 , 467290 , 467325 , 480011 , 482193 , 482321 , 493080 , 498183 , 500022 , 500597 , 501316 , 507145 , 512050 , 512378 , 514193 , 518357 , 523815 , 528083 , 538333 , 540799 , 540807 , 544518 , 545481 , 556529 , 563929 , 564647 , 571378 , 572128 , 574734 , 576164 , 581571 , 586575 , 596652 , 598626 , 598795 , 599827 , 603812 , 609259 , 613288 , 613401 , 614006 , 619318 , 626067 , 696070 , 700884 , 701205 , 758028 , 766584 , 768491 , 782989 , 789775 , 795484 , 800439 , 803877 , 808290 , 808297 , 814521 );
Copy