3
7.11 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
585409
591841
821167
674396
767091
827434
783079
736682
472387
721915
594226
822172
676931
642951
791852
697833
710711
817178
584145
656643
702688
800400
755109
773903
806574
588878
821091
816625
821667
640519
821344
491313
760701
508204
465773
463945
820953
822295
464049
500724
474593
660729
769380
740481
618846
579483
444608
455879
463751
720403
807301
434717
435104
450495
530016
776481
784487
514417
508145
709646
591966
529405
423675
]
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 (585409 , 591841 , 821167 , 674396 , 767091 , 827434 , 783079 , 736682 , 472387 , 721915 , 594226 , 822172 , 676931 , 642951 , 791852 , 697833 , 710711 , 817178 , 584145 , 656643 , 702688 , 800400 , 755109 , 773903 , 806574 , 588878 , 821091 , 816625 , 821667 , 640519 , 821344 , 491313 , 760701 , 508204 , 465773 , 463945 , 820953 , 822295 , 464049 , 500724 , 474593 , 660729 , 769380 , 740481 , 618846 , 579483 , 444608 , 455879 , 463751 , 720403 , 807301 , 434717 , 435104 , 450495 , 530016 , 776481 , 784487 , 514417 , 508145 , 709646 , 591966 , 529405 , 423675 );
Copy
4
2.70 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
423675
434717
435104
444608
450495
455879
463751
463945
464049
465773
472387
474593
491313
500724
508145
508204
514417
529405
530016
579483
584145
585409
588878
591841
591966
594226
618846
640519
642951
656643
660729
674396
676931
697833
702688
709646
710711
720403
721915
736682
740481
755109
760701
767091
769380
773903
776481
783079
784487
791852
800400
806574
807301
816625
817178
820953
821091
821167
821344
821667
822172
822295
827434
]
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 (423675 , 434717 , 435104 , 444608 , 450495 , 455879 , 463751 , 463945 , 464049 , 465773 , 472387 , 474593 , 491313 , 500724 , 508145 , 508204 , 514417 , 529405 , 530016 , 579483 , 584145 , 585409 , 588878 , 591841 , 591966 , 594226 , 618846 , 640519 , 642951 , 656643 , 660729 , 674396 , 676931 , 697833 , 702688 , 709646 , 710711 , 720403 , 721915 , 736682 , 740481 , 755109 , 760701 , 767091 , 769380 , 773903 , 776481 , 783079 , 784487 , 791852 , 800400 , 806574 , 807301 , 816625 , 817178 , 820953 , 821091 , 821167 , 821344 , 821667 , 822172 , 822295 , 827434 );
Copy
5
70.78 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
423675
434717
435104
444608
450495
455879
463751
463945
464049
465773
472387
474593
491313
500724
508145
508204
514417
529405
530016
579483
584145
585409
588878
591841
591966
594226
618846
640519
642951
656643
660729
674396
676931
697833
702688
709646
710711
720403
721915
736682
740481
755109
760701
767091
769380
773903
776481
783079
784487
791852
800400
806574
807301
816625
817178
820953
821091
821167
821344
821667
822172
822295
827434
]
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 (423675 , 434717 , 435104 , 444608 , 450495 , 455879 , 463751 , 463945 , 464049 , 465773 , 472387 , 474593 , 491313 , 500724 , 508145 , 508204 , 514417 , 529405 , 530016 , 579483 , 584145 , 585409 , 588878 , 591841 , 591966 , 594226 , 618846 , 640519 , 642951 , 656643 , 660729 , 674396 , 676931 , 697833 , 702688 , 709646 , 710711 , 720403 , 721915 , 736682 , 740481 , 755109 , 760701 , 767091 , 769380 , 773903 , 776481 , 783079 , 784487 , 791852 , 800400 , 806574 , 807301 , 816625 , 817178 , 820953 , 821091 , 821167 , 821344 , 821667 , 822172 , 822295 , 827434 );
Copy