3
12.28 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
520630
469530
465033
417782
457176
457189
468008
457182
457972
464348
465058
479492
527485
552595
564342
565800
573158
563988
590784
591697
606817
606838
465061
470526
463091
470509
512895
492096
492482
632059
482936
483005
510885
515378
529265
538267
494151
540167
482938
579869
563992
606836
477114
485147
469539
465054
517052
484410
545648
582035
623920
629888
595667
468010
477100
576219
593860
621756
469552
492097
564327
574149
456518
470441
573156
606929
]
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 (520630 , 469530 , 465033 , 417782 , 457176 , 457189 , 468008 , 457182 , 457972 , 464348 , 465058 , 479492 , 527485 , 552595 , 564342 , 565800 , 573158 , 563988 , 590784 , 591697 , 606817 , 606838 , 465061 , 470526 , 463091 , 470509 , 512895 , 492096 , 492482 , 632059 , 482936 , 483005 , 510885 , 515378 , 529265 , 538267 , 494151 , 540167 , 482938 , 579869 , 563992 , 606836 , 477114 , 485147 , 469539 , 465054 , 517052 , 484410 , 545648 , 582035 , 623920 , 629888 , 595667 , 468010 , 477100 , 576219 , 593860 , 621756 , 469552 , 492097 , 564327 , 574149 , 456518 , 470441 , 573156 , 606929 );
Copy
4
3.07 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
417782
456518
457176
457182
457189
457972
463091
464348
465033
465054
465058
465061
468008
468010
469530
469539
469552
470441
470509
470526
477100
477114
479492
482936
482938
483005
484410
485147
492096
492097
492482
494151
510885
512895
515378
517052
520630
527485
529265
538267
540167
545648
552595
563988
563992
564327
564342
565800
573156
573158
574149
576219
579869
582035
590784
591697
593860
595667
606817
606836
606838
606929
621756
623920
629888
632059
]
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 (417782 , 456518 , 457176 , 457182 , 457189 , 457972 , 463091 , 464348 , 465033 , 465054 , 465058 , 465061 , 468008 , 468010 , 469530 , 469539 , 469552 , 470441 , 470509 , 470526 , 477100 , 477114 , 479492 , 482936 , 482938 , 483005 , 484410 , 485147 , 492096 , 492097 , 492482 , 494151 , 510885 , 512895 , 515378 , 517052 , 520630 , 527485 , 529265 , 538267 , 540167 , 545648 , 552595 , 563988 , 563992 , 564327 , 564342 , 565800 , 573156 , 573158 , 574149 , 576219 , 579869 , 582035 , 590784 , 591697 , 593860 , 595667 , 606817 , 606836 , 606838 , 606929 , 621756 , 623920 , 629888 , 632059 );
Copy
5
88.29 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
417782
456518
457176
457182
457189
457972
463091
464348
465033
465054
465058
465061
468008
468010
469530
469539
469552
470441
470509
470526
477100
477114
479492
482936
482938
483005
484410
485147
492096
492097
492482
494151
510885
512895
515378
517052
520630
527485
529265
538267
540167
545648
552595
563988
563992
564327
564342
565800
573156
573158
574149
576219
579869
582035
590784
591697
593860
595667
606817
606836
606838
606929
621756
623920
629888
632059
]
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 (417782 , 456518 , 457176 , 457182 , 457189 , 457972 , 463091 , 464348 , 465033 , 465054 , 465058 , 465061 , 468008 , 468010 , 469530 , 469539 , 469552 , 470441 , 470509 , 470526 , 477100 , 477114 , 479492 , 482936 , 482938 , 483005 , 484410 , 485147 , 492096 , 492097 , 492482 , 494151 , 510885 , 512895 , 515378 , 517052 , 520630 , 527485 , 529265 , 538267 , 540167 , 545648 , 552595 , 563988 , 563992 , 564327 , 564342 , 565800 , 573156 , 573158 , 574149 , 576219 , 579869 , 582035 , 590784 , 591697 , 593860 , 595667 , 606817 , 606836 , 606838 , 606929 , 621756 , 623920 , 629888 , 632059 );
Copy