3
21.03 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
766182
383366
477316
551575
551953
513054
485810
492960
823671
429446
511257
509088
521480
444137
587885
470578
507069
453461
521978
505462
553626
504743
509959
570988
387230
451713
480086
612534
488090
520560
521656
443020
523997
484846
486828
504664
421861
425176
494238
491709
502333
478400
602803
551269
588755
547729
463021
465306
560867
432837
552977
455473
526400
599617
528347
504723
481459
523833
538001
521424
511592
421882
602574
482704
521985
601827
510668
470467
557570
669188
]
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 (766182 , 383366 , 477316 , 551575 , 551953 , 513054 , 485810 , 492960 , 823671 , 429446 , 511257 , 509088 , 521480 , 444137 , 587885 , 470578 , 507069 , 453461 , 521978 , 505462 , 553626 , 504743 , 509959 , 570988 , 387230 , 451713 , 480086 , 612534 , 488090 , 520560 , 521656 , 443020 , 523997 , 484846 , 486828 , 504664 , 421861 , 425176 , 494238 , 491709 , 502333 , 478400 , 602803 , 551269 , 588755 , 547729 , 463021 , 465306 , 560867 , 432837 , 552977 , 455473 , 526400 , 599617 , 528347 , 504723 , 481459 , 523833 , 538001 , 521424 , 511592 , 421882 , 602574 , 482704 , 521985 , 601827 , 510668 , 470467 , 557570 , 669188 );
Copy
4
3.21 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
383366
387230
421861
421882
425176
429446
432837
443020
444137
451713
453461
455473
463021
465306
470467
470578
477316
478400
480086
481459
482704
484846
485810
486828
488090
491709
492960
494238
502333
504664
504723
504743
505462
507069
509088
509959
510668
511257
511592
513054
520560
521424
521480
521656
521978
521985
523833
523997
526400
528347
538001
547729
551269
551575
551953
552977
553626
557570
560867
570988
587885
588755
599617
601827
602574
602803
612534
669188
766182
823671
]
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 (383366 , 387230 , 421861 , 421882 , 425176 , 429446 , 432837 , 443020 , 444137 , 451713 , 453461 , 455473 , 463021 , 465306 , 470467 , 470578 , 477316 , 478400 , 480086 , 481459 , 482704 , 484846 , 485810 , 486828 , 488090 , 491709 , 492960 , 494238 , 502333 , 504664 , 504723 , 504743 , 505462 , 507069 , 509088 , 509959 , 510668 , 511257 , 511592 , 513054 , 520560 , 521424 , 521480 , 521656 , 521978 , 521985 , 523833 , 523997 , 526400 , 528347 , 538001 , 547729 , 551269 , 551575 , 551953 , 552977 , 553626 , 557570 , 560867 , 570988 , 587885 , 588755 , 599617 , 601827 , 602574 , 602803 , 612534 , 669188 , 766182 , 823671 );
Copy
5
135.19 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
383366
387230
421861
421882
425176
429446
432837
443020
444137
451713
453461
455473
463021
465306
470467
470578
477316
478400
480086
481459
482704
484846
485810
486828
488090
491709
492960
494238
502333
504664
504723
504743
505462
507069
509088
509959
510668
511257
511592
513054
520560
521424
521480
521656
521978
521985
523833
523997
526400
528347
538001
547729
551269
551575
551953
552977
553626
557570
560867
570988
587885
588755
599617
601827
602574
602803
612534
669188
766182
823671
]
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 (383366 , 387230 , 421861 , 421882 , 425176 , 429446 , 432837 , 443020 , 444137 , 451713 , 453461 , 455473 , 463021 , 465306 , 470467 , 470578 , 477316 , 478400 , 480086 , 481459 , 482704 , 484846 , 485810 , 486828 , 488090 , 491709 , 492960 , 494238 , 502333 , 504664 , 504723 , 504743 , 505462 , 507069 , 509088 , 509959 , 510668 , 511257 , 511592 , 513054 , 520560 , 521424 , 521480 , 521656 , 521978 , 521985 , 523833 , 523997 , 526400 , 528347 , 538001 , 547729 , 551269 , 551575 , 551953 , 552977 , 553626 , 557570 , 560867 , 570988 , 587885 , 588755 , 599617 , 601827 , 602574 , 602803 , 612534 , 669188 , 766182 , 823671 );
Copy