3
12.28 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
458650
391948
392021
601532
500987
543664
391980
790947
765857
424286
624012
562214
786603
504464
532765
391959
483425
561838
508375
529999
668821
411422
561333
490514
470629
530310
558288
485482
522079
476021
485478
366284
462155
499022
546178
566637
749799
799866
706480
799813
779162
464738
704702
731285
444223
453595
453514
794041
443002
444802
512485
505445
779146
521619
493039
783836
510745
466466
558999
525709
781400
494568
391944
517100
454567
502913
527168
499407
566459
497579
493411
476244
601903
]
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 (458650 , 391948 , 392021 , 601532 , 500987 , 543664 , 391980 , 790947 , 765857 , 424286 , 624012 , 562214 , 786603 , 504464 , 532765 , 391959 , 483425 , 561838 , 508375 , 529999 , 668821 , 411422 , 561333 , 490514 , 470629 , 530310 , 558288 , 485482 , 522079 , 476021 , 485478 , 366284 , 462155 , 499022 , 546178 , 566637 , 749799 , 799866 , 706480 , 799813 , 779162 , 464738 , 704702 , 731285 , 444223 , 453595 , 453514 , 794041 , 443002 , 444802 , 512485 , 505445 , 779146 , 521619 , 493039 , 783836 , 510745 , 466466 , 558999 , 525709 , 781400 , 494568 , 391944 , 517100 , 454567 , 502913 , 527168 , 499407 , 566459 , 497579 , 493411 , 476244 , 601903 );
Copy
4
2.14 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
366284
391944
391948
391959
391980
392021
411422
424286
443002
444223
444802
453514
453595
454567
458650
462155
464738
466466
470629
476021
476244
483425
485478
485482
490514
493039
493411
494568
497579
499022
499407
500987
502913
504464
505445
508375
510745
512485
517100
521619
522079
525709
527168
529999
530310
532765
543664
546178
558288
558999
561333
561838
562214
566459
566637
601532
601903
624012
668821
704702
706480
731285
749799
765857
779146
779162
781400
783836
786603
790947
794041
799813
799866
]
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 (366284 , 391944 , 391948 , 391959 , 391980 , 392021 , 411422 , 424286 , 443002 , 444223 , 444802 , 453514 , 453595 , 454567 , 458650 , 462155 , 464738 , 466466 , 470629 , 476021 , 476244 , 483425 , 485478 , 485482 , 490514 , 493039 , 493411 , 494568 , 497579 , 499022 , 499407 , 500987 , 502913 , 504464 , 505445 , 508375 , 510745 , 512485 , 517100 , 521619 , 522079 , 525709 , 527168 , 529999 , 530310 , 532765 , 543664 , 546178 , 558288 , 558999 , 561333 , 561838 , 562214 , 566459 , 566637 , 601532 , 601903 , 624012 , 668821 , 704702 , 706480 , 731285 , 749799 , 765857 , 779146 , 779162 , 781400 , 783836 , 786603 , 790947 , 794041 , 799813 , 799866 );
Copy
5
74.83 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
366284
391944
391948
391959
391980
392021
411422
424286
443002
444223
444802
453514
453595
454567
458650
462155
464738
466466
470629
476021
476244
483425
485478
485482
490514
493039
493411
494568
497579
499022
499407
500987
502913
504464
505445
508375
510745
512485
517100
521619
522079
525709
527168
529999
530310
532765
543664
546178
558288
558999
561333
561838
562214
566459
566637
601532
601903
624012
668821
704702
706480
731285
749799
765857
779146
779162
781400
783836
786603
790947
794041
799813
799866
]
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 (366284 , 391944 , 391948 , 391959 , 391980 , 392021 , 411422 , 424286 , 443002 , 444223 , 444802 , 453514 , 453595 , 454567 , 458650 , 462155 , 464738 , 466466 , 470629 , 476021 , 476244 , 483425 , 485478 , 485482 , 490514 , 493039 , 493411 , 494568 , 497579 , 499022 , 499407 , 500987 , 502913 , 504464 , 505445 , 508375 , 510745 , 512485 , 517100 , 521619 , 522079 , 525709 , 527168 , 529999 , 530310 , 532765 , 543664 , 546178 , 558288 , 558999 , 561333 , 561838 , 562214 , 566459 , 566637 , 601532 , 601903 , 624012 , 668821 , 704702 , 706480 , 731285 , 749799 , 765857 , 779146 , 779162 , 781400 , 783836 , 786603 , 790947 , 794041 , 799813 , 799866 );
Copy