3
10.76 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
558082
790134
826705
788321
529498
632302
758740
705798
546057
700924
709916
585898
605850
799862
782453
781068
789849
500308
522148
695872
783709
594606
453170
760471
558098
751692
695339
745111
604767
660253
750637
750426
740407
459334
616013
542706
439135
523571
434336
424770
541409
796982
439345
789002
430366
459339
478514
483737
497690
532370
770382
616315
435398
439151
480207
785267
439301
401414
602444
576951
756840
751418
585826
415926
458870
602268
]
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 (558082 , 790134 , 826705 , 788321 , 529498 , 632302 , 758740 , 705798 , 546057 , 700924 , 709916 , 585898 , 605850 , 799862 , 782453 , 781068 , 789849 , 500308 , 522148 , 695872 , 783709 , 594606 , 453170 , 760471 , 558098 , 751692 , 695339 , 745111 , 604767 , 660253 , 750637 , 750426 , 740407 , 459334 , 616013 , 542706 , 439135 , 523571 , 434336 , 424770 , 541409 , 796982 , 439345 , 789002 , 430366 , 459339 , 478514 , 483737 , 497690 , 532370 , 770382 , 616315 , 435398 , 439151 , 480207 , 785267 , 439301 , 401414 , 602444 , 576951 , 756840 , 751418 , 585826 , 415926 , 458870 , 602268 );
Copy
4
3.36 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
401414
415926
424770
430366
434336
435398
439135
439151
439301
439345
453170
458870
459334
459339
478514
480207
483737
497690
500308
522148
523571
529498
532370
541409
542706
546057
558082
558098
576951
585826
585898
594606
602268
602444
604767
605850
616013
616315
632302
660253
695339
695872
700924
705798
709916
740407
745111
750426
750637
751418
751692
756840
758740
760471
770382
781068
782453
783709
785267
788321
789002
789849
790134
796982
799862
826705
]
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 (401414 , 415926 , 424770 , 430366 , 434336 , 435398 , 439135 , 439151 , 439301 , 439345 , 453170 , 458870 , 459334 , 459339 , 478514 , 480207 , 483737 , 497690 , 500308 , 522148 , 523571 , 529498 , 532370 , 541409 , 542706 , 546057 , 558082 , 558098 , 576951 , 585826 , 585898 , 594606 , 602268 , 602444 , 604767 , 605850 , 616013 , 616315 , 632302 , 660253 , 695339 , 695872 , 700924 , 705798 , 709916 , 740407 , 745111 , 750426 , 750637 , 751418 , 751692 , 756840 , 758740 , 760471 , 770382 , 781068 , 782453 , 783709 , 785267 , 788321 , 789002 , 789849 , 790134 , 796982 , 799862 , 826705 );
Copy
5
97.65 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
401414
415926
424770
430366
434336
435398
439135
439151
439301
439345
453170
458870
459334
459339
478514
480207
483737
497690
500308
522148
523571
529498
532370
541409
542706
546057
558082
558098
576951
585826
585898
594606
602268
602444
604767
605850
616013
616315
632302
660253
695339
695872
700924
705798
709916
740407
745111
750426
750637
751418
751692
756840
758740
760471
770382
781068
782453
783709
785267
788321
789002
789849
790134
796982
799862
826705
]
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 (401414 , 415926 , 424770 , 430366 , 434336 , 435398 , 439135 , 439151 , 439301 , 439345 , 453170 , 458870 , 459334 , 459339 , 478514 , 480207 , 483737 , 497690 , 500308 , 522148 , 523571 , 529498 , 532370 , 541409 , 542706 , 546057 , 558082 , 558098 , 576951 , 585826 , 585898 , 594606 , 602268 , 602444 , 604767 , 605850 , 616013 , 616315 , 632302 , 660253 , 695339 , 695872 , 700924 , 705798 , 709916 , 740407 , 745111 , 750426 , 750637 , 751418 , 751692 , 756840 , 758740 , 760471 , 770382 , 781068 , 782453 , 783709 , 785267 , 788321 , 789002 , 789849 , 790134 , 796982 , 799862 , 826705 );
Copy