3
9.57 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
758271
790601
605546
778092
731220
814444
816163
550958
679964
548174
772776
804676
811642
631005
398507
536551
808682
112637
505891
460237
575400
708930
618115
604794
809071
812403
651696
594934
594884
594949
772169
781645
809072
578253
663154
666068
625949
802282
402973
816168
482623
742331
442296
442190
495277
581410
594809
808407
809073
808463
606867
791022
537508
554981
592244
782588
667344
591277
442234
442285
442735
555039
514141
520995
683054
500424
577556
]
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 (758271 , 790601 , 605546 , 778092 , 731220 , 814444 , 816163 , 550958 , 679964 , 548174 , 772776 , 804676 , 811642 , 631005 , 398507 , 536551 , 808682 , 112637 , 505891 , 460237 , 575400 , 708930 , 618115 , 604794 , 809071 , 812403 , 651696 , 594934 , 594884 , 594949 , 772169 , 781645 , 809072 , 578253 , 663154 , 666068 , 625949 , 802282 , 402973 , 816168 , 482623 , 742331 , 442296 , 442190 , 495277 , 581410 , 594809 , 808407 , 809073 , 808463 , 606867 , 791022 , 537508 , 554981 , 592244 , 782588 , 667344 , 591277 , 442234 , 442285 , 442735 , 555039 , 514141 , 520995 , 683054 , 500424 , 577556 );
Copy
4
3.38 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
112637
398507
402973
442190
442234
442285
442296
442735
460237
482623
495277
500424
505891
514141
520995
536551
537508
548174
550958
554981
555039
575400
577556
578253
581410
591277
592244
594809
594884
594934
594949
604794
605546
606867
618115
625949
631005
651696
663154
666068
667344
679964
683054
708930
731220
742331
758271
772169
772776
778092
781645
782588
790601
791022
802282
804676
808407
808463
808682
809071
809072
809073
811642
812403
814444
816163
816168
]
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 (112637 , 398507 , 402973 , 442190 , 442234 , 442285 , 442296 , 442735 , 460237 , 482623 , 495277 , 500424 , 505891 , 514141 , 520995 , 536551 , 537508 , 548174 , 550958 , 554981 , 555039 , 575400 , 577556 , 578253 , 581410 , 591277 , 592244 , 594809 , 594884 , 594934 , 594949 , 604794 , 605546 , 606867 , 618115 , 625949 , 631005 , 651696 , 663154 , 666068 , 667344 , 679964 , 683054 , 708930 , 731220 , 742331 , 758271 , 772169 , 772776 , 778092 , 781645 , 782588 , 790601 , 791022 , 802282 , 804676 , 808407 , 808463 , 808682 , 809071 , 809072 , 809073 , 811642 , 812403 , 814444 , 816163 , 816168 );
Copy
5
120.09 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
112637
398507
402973
442190
442234
442285
442296
442735
460237
482623
495277
500424
505891
514141
520995
536551
537508
548174
550958
554981
555039
575400
577556
578253
581410
591277
592244
594809
594884
594934
594949
604794
605546
606867
618115
625949
631005
651696
663154
666068
667344
679964
683054
708930
731220
742331
758271
772169
772776
778092
781645
782588
790601
791022
802282
804676
808407
808463
808682
809071
809072
809073
811642
812403
814444
816163
816168
]
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 (112637 , 398507 , 402973 , 442190 , 442234 , 442285 , 442296 , 442735 , 460237 , 482623 , 495277 , 500424 , 505891 , 514141 , 520995 , 536551 , 537508 , 548174 , 550958 , 554981 , 555039 , 575400 , 577556 , 578253 , 581410 , 591277 , 592244 , 594809 , 594884 , 594934 , 594949 , 604794 , 605546 , 606867 , 618115 , 625949 , 631005 , 651696 , 663154 , 666068 , 667344 , 679964 , 683054 , 708930 , 731220 , 742331 , 758271 , 772169 , 772776 , 778092 , 781645 , 782588 , 790601 , 791022 , 802282 , 804676 , 808407 , 808463 , 808682 , 809071 , 809072 , 809073 , 811642 , 812403 , 814444 , 816163 , 816168 );
Copy