3
9.69 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
733913
416294
547130
553259
612913
457980
807892
692714
391976
672251
583468
658994
389231
593002
593092
396337
458617
468719
412122
406330
418059
518949
477407
458623
781488
475443
568034
779560
802111
813787
394376
813803
815137
418057
801890
785525
557209
676241
778383
803268
649559
528316
418051
609121
547768
557207
541854
634215
534023
752596
757362
546783
546085
665781
677712
544964
531083
497656
628170
538653
541849
541863
623261
]
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 (733913 , 416294 , 547130 , 553259 , 612913 , 457980 , 807892 , 692714 , 391976 , 672251 , 583468 , 658994 , 389231 , 593002 , 593092 , 396337 , 458617 , 468719 , 412122 , 406330 , 418059 , 518949 , 477407 , 458623 , 781488 , 475443 , 568034 , 779560 , 802111 , 813787 , 394376 , 813803 , 815137 , 418057 , 801890 , 785525 , 557209 , 676241 , 778383 , 803268 , 649559 , 528316 , 418051 , 609121 , 547768 , 557207 , 541854 , 634215 , 534023 , 752596 , 757362 , 546783 , 546085 , 665781 , 677712 , 544964 , 531083 , 497656 , 628170 , 538653 , 541849 , 541863 , 623261 );
Copy
4
2.80 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
389231
391976
394376
396337
406330
412122
416294
418051
418057
418059
457980
458617
458623
468719
475443
477407
497656
518949
528316
531083
534023
538653
541849
541854
541863
544964
546085
546783
547130
547768
553259
557207
557209
568034
583468
593002
593092
609121
612913
623261
628170
634215
649559
658994
665781
672251
676241
677712
692714
733913
752596
757362
778383
779560
781488
785525
801890
802111
803268
807892
813787
813803
815137
]
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 (389231 , 391976 , 394376 , 396337 , 406330 , 412122 , 416294 , 418051 , 418057 , 418059 , 457980 , 458617 , 458623 , 468719 , 475443 , 477407 , 497656 , 518949 , 528316 , 531083 , 534023 , 538653 , 541849 , 541854 , 541863 , 544964 , 546085 , 546783 , 547130 , 547768 , 553259 , 557207 , 557209 , 568034 , 583468 , 593002 , 593092 , 609121 , 612913 , 623261 , 628170 , 634215 , 649559 , 658994 , 665781 , 672251 , 676241 , 677712 , 692714 , 733913 , 752596 , 757362 , 778383 , 779560 , 781488 , 785525 , 801890 , 802111 , 803268 , 807892 , 813787 , 813803 , 815137 );
Copy
5
93.36 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
389231
391976
394376
396337
406330
412122
416294
418051
418057
418059
457980
458617
458623
468719
475443
477407
497656
518949
528316
531083
534023
538653
541849
541854
541863
544964
546085
546783
547130
547768
553259
557207
557209
568034
583468
593002
593092
609121
612913
623261
628170
634215
649559
658994
665781
672251
676241
677712
692714
733913
752596
757362
778383
779560
781488
785525
801890
802111
803268
807892
813787
813803
815137
]
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 (389231 , 391976 , 394376 , 396337 , 406330 , 412122 , 416294 , 418051 , 418057 , 418059 , 457980 , 458617 , 458623 , 468719 , 475443 , 477407 , 497656 , 518949 , 528316 , 531083 , 534023 , 538653 , 541849 , 541854 , 541863 , 544964 , 546085 , 546783 , 547130 , 547768 , 553259 , 557207 , 557209 , 568034 , 583468 , 593002 , 593092 , 609121 , 612913 , 623261 , 628170 , 634215 , 649559 , 658994 , 665781 , 672251 , 676241 , 677712 , 692714 , 733913 , 752596 , 757362 , 778383 , 779560 , 781488 , 785525 , 801890 , 802111 , 803268 , 807892 , 813787 , 813803 , 815137 );
Copy