3
10.11 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
605742
418139
639810
448057
787438
450889
545328
680928
791406
424129
601698
467877
419816
555571
469176
531135
555091
574049
770410
738503
459649
460027
391950
596402
530001
458870
521481
783486
640948
561970
459650
806668
430355
710161
507284
444915
417674
521798
519671
785267
435398
419352
617047
469198
429879
419609
413373
492701
620174
788344
787989
429899
503617
411036
429872
428761
469027
528143
440041
504450
448522
460314
427112
524535
]
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 (605742 , 418139 , 639810 , 448057 , 787438 , 450889 , 545328 , 680928 , 791406 , 424129 , 601698 , 467877 , 419816 , 555571 , 469176 , 531135 , 555091 , 574049 , 770410 , 738503 , 459649 , 460027 , 391950 , 596402 , 530001 , 458870 , 521481 , 783486 , 640948 , 561970 , 459650 , 806668 , 430355 , 710161 , 507284 , 444915 , 417674 , 521798 , 519671 , 785267 , 435398 , 419352 , 617047 , 469198 , 429879 , 419609 , 413373 , 492701 , 620174 , 788344 , 787989 , 429899 , 503617 , 411036 , 429872 , 428761 , 469027 , 528143 , 440041 , 504450 , 448522 , 460314 , 427112 , 524535 );
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
391950
411036
413373
417674
418139
419352
419609
419816
424129
427112
428761
429872
429879
429899
430355
435398
440041
444915
448057
448522
450889
458870
459649
459650
460027
460314
467877
469027
469176
469198
492701
503617
504450
507284
519671
521481
521798
524535
528143
530001
531135
545328
555091
555571
561970
574049
596402
601698
605742
617047
620174
639810
640948
680928
710161
738503
770410
783486
785267
787438
788344
791406
806668
]
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 (391950 , 411036 , 413373 , 417674 , 418139 , 419352 , 419609 , 419816 , 424129 , 427112 , 428761 , 429872 , 429879 , 429899 , 430355 , 435398 , 440041 , 444915 , 448057 , 448522 , 450889 , 458870 , 459649 , 459650 , 460027 , 460314 , 467877 , 469027 , 469176 , 469198 , 492701 , 503617 , 504450 , 507284 , 519671 , 521481 , 521798 , 524535 , 528143 , 530001 , 531135 , 545328 , 555091 , 555571 , 561970 , 574049 , 596402 , 601698 , 605742 , 617047 , 620174 , 639810 , 640948 , 680928 , 710161 , 738503 , 770410 , 783486 , 785267 , 787438 , 788344 , 791406 , 806668 );
Copy
5
73.36 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
391950
411036
413373
417674
418139
419352
419609
419816
424129
427112
428761
429872
429879
429899
430355
435398
440041
444915
448057
448522
450889
458870
459649
459650
460027
460314
467877
469027
469176
469198
492701
503617
504450
507284
519671
521481
521798
524535
528143
530001
531135
545328
555091
555571
561970
574049
596402
601698
605742
617047
620174
639810
640948
680928
710161
738503
770410
783486
785267
787438
788344
791406
806668
]
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 (391950 , 411036 , 413373 , 417674 , 418139 , 419352 , 419609 , 419816 , 424129 , 427112 , 428761 , 429872 , 429879 , 429899 , 430355 , 435398 , 440041 , 444915 , 448057 , 448522 , 450889 , 458870 , 459649 , 459650 , 460027 , 460314 , 467877 , 469027 , 469176 , 469198 , 492701 , 503617 , 504450 , 507284 , 519671 , 521481 , 521798 , 524535 , 528143 , 530001 , 531135 , 545328 , 555091 , 555571 , 561970 , 574049 , 596402 , 601698 , 605742 , 617047 , 620174 , 639810 , 640948 , 680928 , 710161 , 738503 , 770410 , 783486 , 785267 , 787438 , 788344 , 791406 , 806668 );
Copy