3
12.46 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
619352
618234
802460
812893
705118
804192
419598
411422
472816
233676
424264
446805
469898
497120
513752
519651
507197
518005
388102
437794
424931
453104
479619
512965
555904
556752
677730
559770
576359
622722
633113
591877
623444
624044
462996
464017
525375
393298
468536
504722
497062
529940
466091
716787
806247
469075
454633
493006
495327
511778
460710
528864
576364
701498
663221
412988
476492
420575
574833
610652
525795
453162
512420
714511
554812
488823
]
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 (619352 , 618234 , 802460 , 812893 , 705118 , 804192 , 419598 , 411422 , 472816 , 233676 , 424264 , 446805 , 469898 , 497120 , 513752 , 519651 , 507197 , 518005 , 388102 , 437794 , 424931 , 453104 , 479619 , 512965 , 555904 , 556752 , 677730 , 559770 , 576359 , 622722 , 633113 , 591877 , 623444 , 624044 , 462996 , 464017 , 525375 , 393298 , 468536 , 504722 , 497062 , 529940 , 466091 , 716787 , 806247 , 469075 , 454633 , 493006 , 495327 , 511778 , 460710 , 528864 , 576364 , 701498 , 663221 , 412988 , 476492 , 420575 , 574833 , 610652 , 525795 , 453162 , 512420 , 714511 , 554812 , 488823 );
Copy
4
2.40 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
233676
388102
393298
411422
412988
419598
420575
424264
424931
437794
446805
453104
453162
454633
460710
462996
464017
466091
468536
469075
469898
472816
476492
479619
488823
493006
495327
497062
497120
504722
507197
511778
512420
512965
513752
518005
519651
525375
525795
528864
529940
554812
555904
556752
559770
574833
576359
576364
591877
610652
618234
619352
622722
623444
624044
633113
663221
677730
701498
705118
714511
716787
802460
804192
806247
812893
]
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 (233676 , 388102 , 393298 , 411422 , 412988 , 419598 , 420575 , 424264 , 424931 , 437794 , 446805 , 453104 , 453162 , 454633 , 460710 , 462996 , 464017 , 466091 , 468536 , 469075 , 469898 , 472816 , 476492 , 479619 , 488823 , 493006 , 495327 , 497062 , 497120 , 504722 , 507197 , 511778 , 512420 , 512965 , 513752 , 518005 , 519651 , 525375 , 525795 , 528864 , 529940 , 554812 , 555904 , 556752 , 559770 , 574833 , 576359 , 576364 , 591877 , 610652 , 618234 , 619352 , 622722 , 623444 , 624044 , 633113 , 663221 , 677730 , 701498 , 705118 , 714511 , 716787 , 802460 , 804192 , 806247 , 812893 );
Copy
5
139.04 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
233676
388102
393298
411422
412988
419598
420575
424264
424931
437794
446805
453104
453162
454633
460710
462996
464017
466091
468536
469075
469898
472816
476492
479619
488823
493006
495327
497062
497120
504722
507197
511778
512420
512965
513752
518005
519651
525375
525795
528864
529940
554812
555904
556752
559770
574833
576359
576364
591877
610652
618234
619352
622722
623444
624044
633113
663221
677730
701498
705118
714511
716787
802460
804192
806247
812893
]
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 (233676 , 388102 , 393298 , 411422 , 412988 , 419598 , 420575 , 424264 , 424931 , 437794 , 446805 , 453104 , 453162 , 454633 , 460710 , 462996 , 464017 , 466091 , 468536 , 469075 , 469898 , 472816 , 476492 , 479619 , 488823 , 493006 , 495327 , 497062 , 497120 , 504722 , 507197 , 511778 , 512420 , 512965 , 513752 , 518005 , 519651 , 525375 , 525795 , 528864 , 529940 , 554812 , 555904 , 556752 , 559770 , 574833 , 576359 , 576364 , 591877 , 610652 , 618234 , 619352 , 622722 , 623444 , 624044 , 633113 , 663221 , 677730 , 701498 , 705118 , 714511 , 716787 , 802460 , 804192 , 806247 , 812893 );
Copy