3
14.94 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
640252
601407
788380
791700
727532
772254
724520
764627
750887
785102
394173
421613
459560
459295
449331
524565
542422
570017
605856
615821
623815
628564
777257
804554
728497
766415
788200
382341
428418
470860
497643
500511
501605
393298
474984
508963
511320
490231
550634
618668
588716
610147
640356
619455
624990
736912
383390
388374
502378
452403
461159
445803
541230
568914
595061
501713
514456
473106
521173
566046
559989
762217
525378
552940
528040
601485
628277
661565
]
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 (640252 , 601407 , 788380 , 791700 , 727532 , 772254 , 724520 , 764627 , 750887 , 785102 , 394173 , 421613 , 459560 , 459295 , 449331 , 524565 , 542422 , 570017 , 605856 , 615821 , 623815 , 628564 , 777257 , 804554 , 728497 , 766415 , 788200 , 382341 , 428418 , 470860 , 497643 , 500511 , 501605 , 393298 , 474984 , 508963 , 511320 , 490231 , 550634 , 618668 , 588716 , 610147 , 640356 , 619455 , 624990 , 736912 , 383390 , 388374 , 502378 , 452403 , 461159 , 445803 , 541230 , 568914 , 595061 , 501713 , 514456 , 473106 , 521173 , 566046 , 559989 , 762217 , 525378 , 552940 , 528040 , 601485 , 628277 , 661565 );
Copy
4
3.08 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
382341
383390
388374
393298
394173
421613
428418
445803
449331
452403
459295
459560
461159
470860
473106
474984
490231
497643
500511
501605
501713
502378
508963
511320
514456
521173
524565
525378
528040
541230
542422
550634
552940
559989
566046
568914
570017
588716
595061
601407
601485
605856
610147
615821
618668
619455
623815
624990
628277
628564
640252
640356
661565
724520
727532
728497
736912
750887
762217
764627
766415
772254
777257
785102
788200
788380
791700
804554
]
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 (382341 , 383390 , 388374 , 393298 , 394173 , 421613 , 428418 , 445803 , 449331 , 452403 , 459295 , 459560 , 461159 , 470860 , 473106 , 474984 , 490231 , 497643 , 500511 , 501605 , 501713 , 502378 , 508963 , 511320 , 514456 , 521173 , 524565 , 525378 , 528040 , 541230 , 542422 , 550634 , 552940 , 559989 , 566046 , 568914 , 570017 , 588716 , 595061 , 601407 , 601485 , 605856 , 610147 , 615821 , 618668 , 619455 , 623815 , 624990 , 628277 , 628564 , 640252 , 640356 , 661565 , 724520 , 727532 , 728497 , 736912 , 750887 , 762217 , 764627 , 766415 , 772254 , 777257 , 785102 , 788200 , 788380 , 791700 , 804554 );
Copy
5
98.63 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
382341
383390
388374
393298
394173
421613
428418
445803
449331
452403
459295
459560
461159
470860
473106
474984
490231
497643
500511
501605
501713
502378
508963
511320
514456
521173
524565
525378
528040
541230
542422
550634
552940
559989
566046
568914
570017
588716
595061
601407
601485
605856
610147
615821
618668
619455
623815
624990
628277
628564
640252
640356
661565
724520
727532
728497
736912
750887
762217
764627
766415
772254
777257
785102
788200
788380
791700
804554
]
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 (382341 , 383390 , 388374 , 393298 , 394173 , 421613 , 428418 , 445803 , 449331 , 452403 , 459295 , 459560 , 461159 , 470860 , 473106 , 474984 , 490231 , 497643 , 500511 , 501605 , 501713 , 502378 , 508963 , 511320 , 514456 , 521173 , 524565 , 525378 , 528040 , 541230 , 542422 , 550634 , 552940 , 559989 , 566046 , 568914 , 570017 , 588716 , 595061 , 601407 , 601485 , 605856 , 610147 , 615821 , 618668 , 619455 , 623815 , 624990 , 628277 , 628564 , 640252 , 640356 , 661565 , 724520 , 727532 , 728497 , 736912 , 750887 , 762217 , 764627 , 766415 , 772254 , 777257 , 785102 , 788200 , 788380 , 791700 , 804554 );
Copy