3
13.62 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
709914
742364
767419
466478
787506
500308
806683
449517
525304
776963
813034
782070
449313
777882
777989
740556
499182
677240
734825
429050
442510
446049
448470
474805
791042
812429
462843
448304
693761
604699
764213
714079
809891
768905
397396
450968
587212
786726
803394
808573
523866
524839
444027
441041
446656
825561
479311
447712
477247
435355
604782
525297
628037
613676
814810
568759
500947
556967
613530
462071
445108
519865
518638
525729
590881
470903
524535
599694
]
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 (709914 , 742364 , 767419 , 466478 , 787506 , 500308 , 806683 , 449517 , 525304 , 776963 , 813034 , 782070 , 449313 , 777882 , 777989 , 740556 , 499182 , 677240 , 734825 , 429050 , 442510 , 446049 , 448470 , 474805 , 791042 , 812429 , 462843 , 448304 , 693761 , 604699 , 764213 , 714079 , 809891 , 768905 , 397396 , 450968 , 587212 , 786726 , 803394 , 808573 , 523866 , 524839 , 444027 , 441041 , 446656 , 825561 , 479311 , 447712 , 477247 , 435355 , 604782 , 525297 , 628037 , 613676 , 814810 , 568759 , 500947 , 556967 , 613530 , 462071 , 445108 , 519865 , 518638 , 525729 , 590881 , 470903 , 524535 , 599694 );
Copy
4
3.39 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
397396
429050
435355
441041
442510
444027
445108
446049
446656
447712
448304
448470
449313
449517
450968
462071
462843
466478
470903
474805
477247
479311
499182
500308
500947
518638
519865
523866
524535
524839
525297
525304
525729
556967
568759
587212
590881
599694
604699
604782
613530
613676
628037
677240
693761
709914
714079
734825
740556
742364
764213
767419
768905
776963
777882
777989
782070
786726
787506
791042
803394
806683
808573
809891
812429
813034
814810
825561
]
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 (397396 , 429050 , 435355 , 441041 , 442510 , 444027 , 445108 , 446049 , 446656 , 447712 , 448304 , 448470 , 449313 , 449517 , 450968 , 462071 , 462843 , 466478 , 470903 , 474805 , 477247 , 479311 , 499182 , 500308 , 500947 , 518638 , 519865 , 523866 , 524535 , 524839 , 525297 , 525304 , 525729 , 556967 , 568759 , 587212 , 590881 , 599694 , 604699 , 604782 , 613530 , 613676 , 628037 , 677240 , 693761 , 709914 , 714079 , 734825 , 740556 , 742364 , 764213 , 767419 , 768905 , 776963 , 777882 , 777989 , 782070 , 786726 , 787506 , 791042 , 803394 , 806683 , 808573 , 809891 , 812429 , 813034 , 814810 , 825561 );
Copy
5
98.26 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
397396
429050
435355
441041
442510
444027
445108
446049
446656
447712
448304
448470
449313
449517
450968
462071
462843
466478
470903
474805
477247
479311
499182
500308
500947
518638
519865
523866
524535
524839
525297
525304
525729
556967
568759
587212
590881
599694
604699
604782
613530
613676
628037
677240
693761
709914
714079
734825
740556
742364
764213
767419
768905
776963
777882
777989
782070
786726
787506
791042
803394
806683
808573
809891
812429
813034
814810
825561
]
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 (397396 , 429050 , 435355 , 441041 , 442510 , 444027 , 445108 , 446049 , 446656 , 447712 , 448304 , 448470 , 449313 , 449517 , 450968 , 462071 , 462843 , 466478 , 470903 , 474805 , 477247 , 479311 , 499182 , 500308 , 500947 , 518638 , 519865 , 523866 , 524535 , 524839 , 525297 , 525304 , 525729 , 556967 , 568759 , 587212 , 590881 , 599694 , 604699 , 604782 , 613530 , 613676 , 628037 , 677240 , 693761 , 709914 , 714079 , 734825 , 740556 , 742364 , 764213 , 767419 , 768905 , 776963 , 777882 , 777989 , 782070 , 786726 , 787506 , 791042 , 803394 , 806683 , 808573 , 809891 , 812429 , 813034 , 814810 , 825561 );
Copy