3
15.15 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
470425
422074
480714
563082
794135
462757
514024
566557
506529
463810
512913
565341
814944
547865
735195
464811
432647
761583
518451
432692
494074
519436
542127
598169
390508
423499
435472
550337
521205
604631
547556
451497
475056
510553
425353
456362
400960
456809
594810
430374
555291
531534
498423
523134
432582
429383
482768
601423
604046
485100
428756
427981
427946
499867
484372
481910
576723
597736
584712
524712
610695
593343
622778
541804
]
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 (470425 , 422074 , 480714 , 563082 , 794135 , 462757 , 514024 , 566557 , 506529 , 463810 , 512913 , 565341 , 814944 , 547865 , 735195 , 464811 , 432647 , 761583 , 518451 , 432692 , 494074 , 519436 , 542127 , 598169 , 390508 , 423499 , 435472 , 550337 , 521205 , 604631 , 547556 , 451497 , 475056 , 510553 , 425353 , 456362 , 400960 , 456809 , 594810 , 430374 , 555291 , 531534 , 498423 , 523134 , 432582 , 429383 , 482768 , 601423 , 604046 , 485100 , 428756 , 427981 , 427946 , 499867 , 484372 , 481910 , 576723 , 597736 , 584712 , 524712 , 610695 , 593343 , 622778 , 541804 );
Copy
4
3.14 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
390508
400960
422074
423499
425353
427946
427981
428756
429383
430374
432582
432647
432692
435472
451497
456362
456809
462757
463810
464811
470425
475056
480714
481910
482768
484372
485100
494074
498423
499867
506529
510553
512913
514024
518451
519436
521205
523134
524712
531534
541804
542127
547556
547865
550337
555291
563082
565341
566557
576723
584712
593343
594810
597736
598169
601423
604046
604631
610695
622778
735195
761583
794135
814944
]
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 (390508 , 400960 , 422074 , 423499 , 425353 , 427946 , 427981 , 428756 , 429383 , 430374 , 432582 , 432647 , 432692 , 435472 , 451497 , 456362 , 456809 , 462757 , 463810 , 464811 , 470425 , 475056 , 480714 , 481910 , 482768 , 484372 , 485100 , 494074 , 498423 , 499867 , 506529 , 510553 , 512913 , 514024 , 518451 , 519436 , 521205 , 523134 , 524712 , 531534 , 541804 , 542127 , 547556 , 547865 , 550337 , 555291 , 563082 , 565341 , 566557 , 576723 , 584712 , 593343 , 594810 , 597736 , 598169 , 601423 , 604046 , 604631 , 610695 , 622778 , 735195 , 761583 , 794135 , 814944 );
Copy
5
84.47 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
390508
400960
422074
423499
425353
427946
427981
428756
429383
430374
432582
432647
432692
435472
451497
456362
456809
462757
463810
464811
470425
475056
480714
481910
482768
484372
485100
494074
498423
499867
506529
510553
512913
514024
518451
519436
521205
523134
524712
531534
541804
542127
547556
547865
550337
555291
563082
565341
566557
576723
584712
593343
594810
597736
598169
601423
604046
604631
610695
622778
735195
761583
794135
814944
]
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 (390508 , 400960 , 422074 , 423499 , 425353 , 427946 , 427981 , 428756 , 429383 , 430374 , 432582 , 432647 , 432692 , 435472 , 451497 , 456362 , 456809 , 462757 , 463810 , 464811 , 470425 , 475056 , 480714 , 481910 , 482768 , 484372 , 485100 , 494074 , 498423 , 499867 , 506529 , 510553 , 512913 , 514024 , 518451 , 519436 , 521205 , 523134 , 524712 , 531534 , 541804 , 542127 , 547556 , 547865 , 550337 , 555291 , 563082 , 565341 , 566557 , 576723 , 584712 , 593343 , 594810 , 597736 , 598169 , 601423 , 604046 , 604631 , 610695 , 622778 , 735195 , 761583 , 794135 , 814944 );
Copy