4
39.42 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
622131
715156
524347
591853
731572
584442
796894
612577
782613
717137
609643
643765
781100
781788
561293
766822
702192
732651
510628
712175
680030
532354
749067
541123
409403
741836
418426
496661
754174
425514
519793
498485
541096
581135
586466
527118
512431
34382
532174
476854
556920
606946
792613
612068
582235
444043
541417
609130
763398
458308
666983
427241
625436
540167
418650
703364
457946
401626
504758
504755
511595
512941
636247
]
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 (622131 , 715156 , 524347 , 591853 , 731572 , 584442 , 796894 , 612577 , 782613 , 717137 , 609643 , 643765 , 781100 , 781788 , 561293 , 766822 , 702192 , 732651 , 510628 , 712175 , 680030 , 532354 , 749067 , 541123 , 409403 , 741836 , 418426 , 496661 , 754174 , 425514 , 519793 , 498485 , 541096 , 581135 , 586466 , 527118 , 512431 , 34382 , 532174 , 476854 , 556920 , 606946 , 792613 , 612068 , 582235 , 444043 , 541417 , 609130 , 763398 , 458308 , 666983 , 427241 , 625436 , 540167 , 418650 , 703364 , 457946 , 401626 , 504758 , 504755 , 511595 , 512941 , 636247 );
Copy
5
10.16 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
34382
401626
409403
418426
418650
425514
427241
444043
457946
458308
476854
496661
498485
504755
504758
510628
511595
512431
512941
519793
524347
527118
532174
532354
540167
541096
541123
541417
556920
561293
581135
582235
584442
586466
591853
606946
609130
609643
612068
612577
622131
625436
636247
643765
666983
680030
702192
703364
712175
715156
717137
731572
732651
749067
754174
763398
766822
781100
781788
782613
792613
796894
]
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 (34382 , 401626 , 409403 , 418426 , 418650 , 425514 , 427241 , 444043 , 457946 , 458308 , 476854 , 496661 , 498485 , 504755 , 504758 , 510628 , 511595 , 512431 , 512941 , 519793 , 524347 , 527118 , 532174 , 532354 , 540167 , 541096 , 541123 , 541417 , 556920 , 561293 , 581135 , 582235 , 584442 , 586466 , 591853 , 606946 , 609130 , 609643 , 612068 , 612577 , 622131 , 625436 , 636247 , 643765 , 666983 , 680030 , 702192 , 703364 , 712175 , 715156 , 717137 , 731572 , 732651 , 749067 , 754174 , 763398 , 766822 , 781100 , 781788 , 782613 , 792613 , 796894 );
Copy
6
82.61 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
34382
401626
409403
418426
418650
425514
427241
444043
457946
458308
476854
496661
498485
504755
504758
510628
511595
512431
512941
519793
524347
527118
532174
532354
540167
541096
541123
541417
556920
561293
581135
582235
584442
586466
591853
606946
609130
609643
612068
612577
622131
625436
636247
643765
666983
680030
702192
703364
712175
715156
717137
731572
732651
749067
754174
763398
766822
781100
781788
782613
792613
796894
]
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 (34382 , 401626 , 409403 , 418426 , 418650 , 425514 , 427241 , 444043 , 457946 , 458308 , 476854 , 496661 , 498485 , 504755 , 504758 , 510628 , 511595 , 512431 , 512941 , 519793 , 524347 , 527118 , 532174 , 532354 , 540167 , 541096 , 541123 , 541417 , 556920 , 561293 , 581135 , 582235 , 584442 , 586466 , 591853 , 606946 , 609130 , 609643 , 612068 , 612577 , 622131 , 625436 , 636247 , 643765 , 666983 , 680030 , 702192 , 703364 , 712175 , 715156 , 717137 , 731572 , 732651 , 749067 , 754174 , 763398 , 766822 , 781100 , 781788 , 782613 , 792613 , 796894 );
Copy