3
12.66 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
439052
440041
507284
441092
666886
713153
506371
685843
487429
633455
685061
770260
725629
520767
541325
514876
439056
827326
541322
586760
456229
478508
542709
492181
564222
447315
571726
505140
787510
796939
658787
445745
410239
752620
209216
575589
548153
545328
544404
752767
505317
542146
770410
627409
450889
594491
634108
450599
500313
532727
798243
766335
486775
642022
806591
460535
467893
429861
546987
722395
495747
451774
637741
415874
413432
429900
413373
467878
510898
531135
806580
469198
490447
419609
417674
]
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 (439052 , 440041 , 507284 , 441092 , 666886 , 713153 , 506371 , 685843 , 487429 , 633455 , 685061 , 770260 , 725629 , 520767 , 541325 , 514876 , 439056 , 827326 , 541322 , 586760 , 456229 , 478508 , 542709 , 492181 , 564222 , 447315 , 571726 , 505140 , 787510 , 796939 , 658787 , 445745 , 410239 , 752620 , 209216 , 575589 , 548153 , 545328 , 544404 , 752767 , 505317 , 542146 , 770410 , 627409 , 450889 , 594491 , 634108 , 450599 , 500313 , 532727 , 798243 , 766335 , 486775 , 642022 , 806591 , 460535 , 467893 , 429861 , 546987 , 722395 , 495747 , 451774 , 637741 , 415874 , 413432 , 429900 , 413373 , 467878 , 510898 , 531135 , 806580 , 469198 , 490447 , 419609 , 417674 );
Copy
4
2.58 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
209216
410239
413373
413432
415874
417674
419609
429861
429900
439052
439056
440041
441092
445745
447315
450599
450889
451774
456229
460535
467878
467893
469198
478508
486775
487429
490447
492181
495747
500313
505140
505317
506371
507284
510898
514876
520767
531135
532727
541322
541325
542146
542709
544404
545328
546987
548153
564222
571726
575589
586760
594491
627409
633455
634108
637741
642022
658787
666886
685061
685843
713153
722395
725629
752620
752767
766335
770260
770410
787510
796939
798243
806580
806591
827326
]
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 (209216 , 410239 , 413373 , 413432 , 415874 , 417674 , 419609 , 429861 , 429900 , 439052 , 439056 , 440041 , 441092 , 445745 , 447315 , 450599 , 450889 , 451774 , 456229 , 460535 , 467878 , 467893 , 469198 , 478508 , 486775 , 487429 , 490447 , 492181 , 495747 , 500313 , 505140 , 505317 , 506371 , 507284 , 510898 , 514876 , 520767 , 531135 , 532727 , 541322 , 541325 , 542146 , 542709 , 544404 , 545328 , 546987 , 548153 , 564222 , 571726 , 575589 , 586760 , 594491 , 627409 , 633455 , 634108 , 637741 , 642022 , 658787 , 666886 , 685061 , 685843 , 713153 , 722395 , 725629 , 752620 , 752767 , 766335 , 770260 , 770410 , 787510 , 796939 , 798243 , 806580 , 806591 , 827326 );
Copy
5
87.62 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
209216
410239
413373
413432
415874
417674
419609
429861
429900
439052
439056
440041
441092
445745
447315
450599
450889
451774
456229
460535
467878
467893
469198
478508
486775
487429
490447
492181
495747
500313
505140
505317
506371
507284
510898
514876
520767
531135
532727
541322
541325
542146
542709
544404
545328
546987
548153
564222
571726
575589
586760
594491
627409
633455
634108
637741
642022
658787
666886
685061
685843
713153
722395
725629
752620
752767
766335
770260
770410
787510
796939
798243
806580
806591
827326
]
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 (209216 , 410239 , 413373 , 413432 , 415874 , 417674 , 419609 , 429861 , 429900 , 439052 , 439056 , 440041 , 441092 , 445745 , 447315 , 450599 , 450889 , 451774 , 456229 , 460535 , 467878 , 467893 , 469198 , 478508 , 486775 , 487429 , 490447 , 492181 , 495747 , 500313 , 505140 , 505317 , 506371 , 507284 , 510898 , 514876 , 520767 , 531135 , 532727 , 541322 , 541325 , 542146 , 542709 , 544404 , 545328 , 546987 , 548153 , 564222 , 571726 , 575589 , 586760 , 594491 , 627409 , 633455 , 634108 , 637741 , 642022 , 658787 , 666886 , 685061 , 685843 , 713153 , 722395 , 725629 , 752620 , 752767 , 766335 , 770260 , 770410 , 787510 , 796939 , 798243 , 806580 , 806591 , 827326 );
Copy