3
5.96 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
381901
626088
561872
518482
432359
742792
582899
690290
785343
776639
812271
736418
788410
812804
709980
555508
681322
808490
756813
803860
762684
634271
786663
773758
719101
515521
813649
584334
813455
740254
785956
807543
450287
447705
469044
570837
668975
776155
807329
755800
708258
442775
458008
565658
578343
681319
671400
615370
766626
573729
595723
614077
467010
524967
525997
682405
533610
619549
616956
571334
499353
541638
]
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 (381901 , 626088 , 561872 , 518482 , 432359 , 742792 , 582899 , 690290 , 785343 , 776639 , 812271 , 736418 , 788410 , 812804 , 709980 , 555508 , 681322 , 808490 , 756813 , 803860 , 762684 , 634271 , 786663 , 773758 , 719101 , 515521 , 813649 , 584334 , 813455 , 740254 , 785956 , 807543 , 450287 , 447705 , 469044 , 570837 , 668975 , 776155 , 807329 , 755800 , 708258 , 442775 , 458008 , 565658 , 578343 , 681319 , 671400 , 615370 , 766626 , 573729 , 595723 , 614077 , 467010 , 524967 , 525997 , 682405 , 533610 , 619549 , 616956 , 571334 , 499353 , 541638 );
Copy
4
1.85 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
381901
432359
442775
447705
450287
458008
467010
469044
499353
515521
518482
524967
525997
533610
541638
555508
561872
565658
570837
571334
573729
578343
582899
584334
595723
614077
615370
616956
619549
626088
634271
668975
671400
681319
681322
682405
690290
708258
709980
719101
736418
740254
742792
755800
756813
762684
766626
773758
776155
776639
785343
785956
786663
788410
803860
807329
807543
808490
812271
812804
813455
813649
]
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 (381901 , 432359 , 442775 , 447705 , 450287 , 458008 , 467010 , 469044 , 499353 , 515521 , 518482 , 524967 , 525997 , 533610 , 541638 , 555508 , 561872 , 565658 , 570837 , 571334 , 573729 , 578343 , 582899 , 584334 , 595723 , 614077 , 615370 , 616956 , 619549 , 626088 , 634271 , 668975 , 671400 , 681319 , 681322 , 682405 , 690290 , 708258 , 709980 , 719101 , 736418 , 740254 , 742792 , 755800 , 756813 , 762684 , 766626 , 773758 , 776155 , 776639 , 785343 , 785956 , 786663 , 788410 , 803860 , 807329 , 807543 , 808490 , 812271 , 812804 , 813455 , 813649 );
Copy
5
101.23 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
381901
432359
442775
447705
450287
458008
467010
469044
499353
515521
518482
524967
525997
533610
541638
555508
561872
565658
570837
571334
573729
578343
582899
584334
595723
614077
615370
616956
619549
626088
634271
668975
671400
681319
681322
682405
690290
708258
709980
719101
736418
740254
742792
755800
756813
762684
766626
773758
776155
776639
785343
785956
786663
788410
803860
807329
807543
808490
812271
812804
813455
813649
]
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 (381901 , 432359 , 442775 , 447705 , 450287 , 458008 , 467010 , 469044 , 499353 , 515521 , 518482 , 524967 , 525997 , 533610 , 541638 , 555508 , 561872 , 565658 , 570837 , 571334 , 573729 , 578343 , 582899 , 584334 , 595723 , 614077 , 615370 , 616956 , 619549 , 626088 , 634271 , 668975 , 671400 , 681319 , 681322 , 682405 , 690290 , 708258 , 709980 , 719101 , 736418 , 740254 , 742792 , 755800 , 756813 , 762684 , 766626 , 773758 , 776155 , 776639 , 785343 , 785956 , 786663 , 788410 , 803860 , 807329 , 807543 , 808490 , 812271 , 812804 , 813455 , 813649 );
Copy