3
11.52 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
439608
427100
483841
512023
482945
554210
601848
462351
440893
476015
484583
520870
470389
473950
421895
439560
525884
447095
464327
513506
598214
466317
421892
517989
555990
563128
555995
570954
718788
682348
796804
421835
421897
466750
493300
502715
519354
506438
421908
462840
439577
549830
528452
426987
443085
797241
400497
463305
452179
510425
546761
513426
470506
418519
421878
439586
517833
516718
582269
556009
518611
520911
617370
557021
751565
620754
485928
546114
]
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 (439608 , 427100 , 483841 , 512023 , 482945 , 554210 , 601848 , 462351 , 440893 , 476015 , 484583 , 520870 , 470389 , 473950 , 421895 , 439560 , 525884 , 447095 , 464327 , 513506 , 598214 , 466317 , 421892 , 517989 , 555990 , 563128 , 555995 , 570954 , 718788 , 682348 , 796804 , 421835 , 421897 , 466750 , 493300 , 502715 , 519354 , 506438 , 421908 , 462840 , 439577 , 549830 , 528452 , 426987 , 443085 , 797241 , 400497 , 463305 , 452179 , 510425 , 546761 , 513426 , 470506 , 418519 , 421878 , 439586 , 517833 , 516718 , 582269 , 556009 , 518611 , 520911 , 617370 , 557021 , 751565 , 620754 , 485928 , 546114 );
Copy
4
2.40 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
400497
418519
421835
421878
421892
421895
421897
421908
426987
427100
439560
439577
439586
439608
440893
443085
447095
452179
462351
462840
463305
464327
466317
466750
470389
470506
473950
476015
482945
483841
484583
485928
493300
502715
506438
510425
512023
513426
513506
516718
517833
517989
518611
519354
520870
520911
525884
528452
546114
546761
549830
554210
555990
555995
556009
557021
563128
570954
582269
598214
601848
617370
620754
682348
718788
751565
796804
797241
]
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 (400497 , 418519 , 421835 , 421878 , 421892 , 421895 , 421897 , 421908 , 426987 , 427100 , 439560 , 439577 , 439586 , 439608 , 440893 , 443085 , 447095 , 452179 , 462351 , 462840 , 463305 , 464327 , 466317 , 466750 , 470389 , 470506 , 473950 , 476015 , 482945 , 483841 , 484583 , 485928 , 493300 , 502715 , 506438 , 510425 , 512023 , 513426 , 513506 , 516718 , 517833 , 517989 , 518611 , 519354 , 520870 , 520911 , 525884 , 528452 , 546114 , 546761 , 549830 , 554210 , 555990 , 555995 , 556009 , 557021 , 563128 , 570954 , 582269 , 598214 , 601848 , 617370 , 620754 , 682348 , 718788 , 751565 , 796804 , 797241 );
Copy
5
87.39 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
400497
418519
421835
421878
421892
421895
421897
421908
426987
427100
439560
439577
439586
439608
440893
443085
447095
452179
462351
462840
463305
464327
466317
466750
470389
470506
473950
476015
482945
483841
484583
485928
493300
502715
506438
510425
512023
513426
513506
516718
517833
517989
518611
519354
520870
520911
525884
528452
546114
546761
549830
554210
555990
555995
556009
557021
563128
570954
582269
598214
601848
617370
620754
682348
718788
751565
796804
797241
]
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 (400497 , 418519 , 421835 , 421878 , 421892 , 421895 , 421897 , 421908 , 426987 , 427100 , 439560 , 439577 , 439586 , 439608 , 440893 , 443085 , 447095 , 452179 , 462351 , 462840 , 463305 , 464327 , 466317 , 466750 , 470389 , 470506 , 473950 , 476015 , 482945 , 483841 , 484583 , 485928 , 493300 , 502715 , 506438 , 510425 , 512023 , 513426 , 513506 , 516718 , 517833 , 517989 , 518611 , 519354 , 520870 , 520911 , 525884 , 528452 , 546114 , 546761 , 549830 , 554210 , 555990 , 555995 , 556009 , 557021 , 563128 , 570954 , 582269 , 598214 , 601848 , 617370 , 620754 , 682348 , 718788 , 751565 , 796804 , 797241 );
Copy