3
9.46 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
804636
804646
804638
804639
643249
780162
734253
760563
689857
745114
729666
813817
827737
597663
438181
750962
689065
514219
816869
613435
796663
497778
669346
797215
777754
816815
794178
786339
757012
824577
661495
595041
439427
489310
608955
774842
746135
500525
691179
604621
511375
421856
811283
749298
808025
582281
628459
454541
733594
602056
461312
574023
664441
664192
785864
470613
452950
600798
556524
581850
500912
497837
515667
624127
485061
]
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 (804636 , 804646 , 804638 , 804639 , 643249 , 780162 , 734253 , 760563 , 689857 , 745114 , 729666 , 813817 , 827737 , 597663 , 438181 , 750962 , 689065 , 514219 , 816869 , 613435 , 796663 , 497778 , 669346 , 797215 , 777754 , 816815 , 794178 , 786339 , 757012 , 824577 , 661495 , 595041 , 439427 , 489310 , 608955 , 774842 , 746135 , 500525 , 691179 , 604621 , 511375 , 421856 , 811283 , 749298 , 808025 , 582281 , 628459 , 454541 , 733594 , 602056 , 461312 , 574023 , 664441 , 664192 , 785864 , 470613 , 452950 , 600798 , 556524 , 581850 , 500912 , 497837 , 515667 , 624127 , 485061 );
Copy
4
2.71 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
421856
438181
439427
452950
454541
461312
470613
485061
489310
497778
497837
500525
500912
511375
514219
515667
556524
574023
581850
582281
595041
597663
600798
602056
608955
613435
624127
628459
643249
661495
664192
664441
669346
689065
689857
691179
729666
733594
734253
745114
746135
749298
750962
757012
760563
774842
777754
780162
785864
786339
794178
796663
797215
804636
804638
804639
804646
808025
811283
813817
816815
816869
824577
827737
]
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 (421856 , 438181 , 439427 , 452950 , 454541 , 461312 , 470613 , 485061 , 489310 , 497778 , 497837 , 500525 , 500912 , 511375 , 514219 , 515667 , 556524 , 574023 , 581850 , 582281 , 595041 , 597663 , 600798 , 602056 , 608955 , 613435 , 624127 , 628459 , 643249 , 661495 , 664192 , 664441 , 669346 , 689065 , 689857 , 691179 , 729666 , 733594 , 734253 , 745114 , 746135 , 749298 , 750962 , 757012 , 760563 , 774842 , 777754 , 780162 , 785864 , 786339 , 794178 , 796663 , 797215 , 804636 , 804638 , 804639 , 804646 , 808025 , 811283 , 813817 , 816815 , 816869 , 824577 , 827737 );
Copy
5
71.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
421856
438181
439427
452950
454541
461312
470613
485061
489310
497778
497837
500525
500912
511375
514219
515667
556524
574023
581850
582281
595041
597663
600798
602056
608955
613435
624127
628459
643249
661495
664192
664441
669346
689065
689857
691179
729666
733594
734253
745114
746135
749298
750962
757012
760563
774842
777754
780162
785864
786339
794178
796663
797215
804636
804638
804639
804646
808025
811283
813817
816815
816869
824577
827737
]
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 (421856 , 438181 , 439427 , 452950 , 454541 , 461312 , 470613 , 485061 , 489310 , 497778 , 497837 , 500525 , 500912 , 511375 , 514219 , 515667 , 556524 , 574023 , 581850 , 582281 , 595041 , 597663 , 600798 , 602056 , 608955 , 613435 , 624127 , 628459 , 643249 , 661495 , 664192 , 664441 , 669346 , 689065 , 689857 , 691179 , 729666 , 733594 , 734253 , 745114 , 746135 , 749298 , 750962 , 757012 , 760563 , 774842 , 777754 , 780162 , 785864 , 786339 , 794178 , 796663 , 797215 , 804636 , 804638 , 804639 , 804646 , 808025 , 811283 , 813817 , 816815 , 816869 , 824577 , 827737 );
Copy