3
9.11 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
557800
583775
438411
824792
755446
813830
788679
761441
763758
820099
828228
792364
671231
682179
802218
616772
797891
794154
513809
546133
601452
794370
783028
760944
795461
789402
791267
804990
805538
757955
459885
700269
687083
756711
460233
580585
761746
468999
462963
479248
494454
621172
428734
555514
579174
707579
437801
417259
525754
480972
821145
453176
510296
565767
552439
631083
782385
736225
509284
517320
812790
621729
822673
502779
]
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 (557800 , 583775 , 438411 , 824792 , 755446 , 813830 , 788679 , 761441 , 763758 , 820099 , 828228 , 792364 , 671231 , 682179 , 802218 , 616772 , 797891 , 794154 , 513809 , 546133 , 601452 , 794370 , 783028 , 760944 , 795461 , 789402 , 791267 , 804990 , 805538 , 757955 , 459885 , 700269 , 687083 , 756711 , 460233 , 580585 , 761746 , 468999 , 462963 , 479248 , 494454 , 621172 , 428734 , 555514 , 579174 , 707579 , 437801 , 417259 , 525754 , 480972 , 821145 , 453176 , 510296 , 565767 , 552439 , 631083 , 782385 , 736225 , 509284 , 517320 , 812790 , 621729 , 822673 , 502779 );
Copy
4
3.03 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
417259
428734
437801
438411
453176
459885
460233
462963
468999
479248
480972
494454
502779
509284
510296
513809
517320
525754
546133
552439
555514
557800
565767
579174
580585
583775
601452
616772
621172
621729
631083
671231
682179
687083
700269
707579
736225
755446
756711
757955
760944
761746
763758
782385
783028
788679
789402
791267
792364
794154
794370
795461
797891
802218
804990
805538
812790
813830
820099
821145
822673
824792
828228
]
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 (417259 , 428734 , 437801 , 438411 , 453176 , 459885 , 460233 , 462963 , 468999 , 479248 , 480972 , 494454 , 502779 , 509284 , 510296 , 513809 , 517320 , 525754 , 546133 , 552439 , 555514 , 557800 , 565767 , 579174 , 580585 , 583775 , 601452 , 616772 , 621172 , 621729 , 631083 , 671231 , 682179 , 687083 , 700269 , 707579 , 736225 , 755446 , 756711 , 757955 , 760944 , 761746 , 763758 , 782385 , 783028 , 788679 , 789402 , 791267 , 792364 , 794154 , 794370 , 795461 , 797891 , 802218 , 804990 , 805538 , 812790 , 813830 , 820099 , 821145 , 822673 , 824792 , 828228 );
Copy
5
93.07 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
417259
428734
437801
438411
453176
459885
460233
462963
468999
479248
480972
494454
502779
509284
510296
513809
517320
525754
546133
552439
555514
557800
565767
579174
580585
583775
601452
616772
621172
621729
631083
671231
682179
687083
700269
707579
736225
755446
756711
757955
760944
761746
763758
782385
783028
788679
789402
791267
792364
794154
794370
795461
797891
802218
804990
805538
812790
813830
820099
821145
822673
824792
828228
]
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 (417259 , 428734 , 437801 , 438411 , 453176 , 459885 , 460233 , 462963 , 468999 , 479248 , 480972 , 494454 , 502779 , 509284 , 510296 , 513809 , 517320 , 525754 , 546133 , 552439 , 555514 , 557800 , 565767 , 579174 , 580585 , 583775 , 601452 , 616772 , 621172 , 621729 , 631083 , 671231 , 682179 , 687083 , 700269 , 707579 , 736225 , 755446 , 756711 , 757955 , 760944 , 761746 , 763758 , 782385 , 783028 , 788679 , 789402 , 791267 , 792364 , 794154 , 794370 , 795461 , 797891 , 802218 , 804990 , 805538 , 812790 , 813830 , 820099 , 821145 , 822673 , 824792 , 828228 );
Copy