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