3
10.64 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
792888
755093
734312
427172
585365
730710
515550
618622
792932
773534
396016
404071
773532
804368
423770
560852
444525
590195
790128
201839
444501
795914
739130
457016
426731
783054
810549
426836
426734
426737
426738
521200
466725
522229
608279
390255
810531
433024
518809
529094
514449
383063
433049
434244
581220
542978
579666
462471
434093
524425
491640
512172
474906
554635
576716
430241
474415
591267
612416
441099
567338
593180
581684
521306
]
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 (792888 , 755093 , 734312 , 427172 , 585365 , 730710 , 515550 , 618622 , 792932 , 773534 , 396016 , 404071 , 773532 , 804368 , 423770 , 560852 , 444525 , 590195 , 790128 , 201839 , 444501 , 795914 , 739130 , 457016 , 426731 , 783054 , 810549 , 426836 , 426734 , 426737 , 426738 , 521200 , 466725 , 522229 , 608279 , 390255 , 810531 , 433024 , 518809 , 529094 , 514449 , 383063 , 433049 , 434244 , 581220 , 542978 , 579666 , 462471 , 434093 , 524425 , 491640 , 512172 , 474906 , 554635 , 576716 , 430241 , 474415 , 591267 , 612416 , 441099 , 567338 , 593180 , 581684 , 521306 );
Copy
4
2.71 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
201839
383063
390255
396016
404071
423770
426731
426734
426737
426738
426836
427172
430241
433024
433049
434093
434244
441099
444501
444525
457016
462471
466725
474415
474906
491640
512172
514449
515550
518809
521200
521306
522229
524425
529094
542978
554635
560852
567338
576716
579666
581220
581684
585365
590195
591267
593180
608279
612416
618622
730710
734312
739130
755093
773532
773534
783054
790128
792888
792932
795914
804368
810531
810549
]
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 (201839 , 383063 , 390255 , 396016 , 404071 , 423770 , 426731 , 426734 , 426737 , 426738 , 426836 , 427172 , 430241 , 433024 , 433049 , 434093 , 434244 , 441099 , 444501 , 444525 , 457016 , 462471 , 466725 , 474415 , 474906 , 491640 , 512172 , 514449 , 515550 , 518809 , 521200 , 521306 , 522229 , 524425 , 529094 , 542978 , 554635 , 560852 , 567338 , 576716 , 579666 , 581220 , 581684 , 585365 , 590195 , 591267 , 593180 , 608279 , 612416 , 618622 , 730710 , 734312 , 739130 , 755093 , 773532 , 773534 , 783054 , 790128 , 792888 , 792932 , 795914 , 804368 , 810531 , 810549 );
Copy
5
107.96 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
201839
383063
390255
396016
404071
423770
426731
426734
426737
426738
426836
427172
430241
433024
433049
434093
434244
441099
444501
444525
457016
462471
466725
474415
474906
491640
512172
514449
515550
518809
521200
521306
522229
524425
529094
542978
554635
560852
567338
576716
579666
581220
581684
585365
590195
591267
593180
608279
612416
618622
730710
734312
739130
755093
773532
773534
783054
790128
792888
792932
795914
804368
810531
810549
]
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 (201839 , 383063 , 390255 , 396016 , 404071 , 423770 , 426731 , 426734 , 426737 , 426738 , 426836 , 427172 , 430241 , 433024 , 433049 , 434093 , 434244 , 441099 , 444501 , 444525 , 457016 , 462471 , 466725 , 474415 , 474906 , 491640 , 512172 , 514449 , 515550 , 518809 , 521200 , 521306 , 522229 , 524425 , 529094 , 542978 , 554635 , 560852 , 567338 , 576716 , 579666 , 581220 , 581684 , 585365 , 590195 , 591267 , 593180 , 608279 , 612416 , 618622 , 730710 , 734312 , 739130 , 755093 , 773532 , 773534 , 783054 , 790128 , 792888 , 792932 , 795914 , 804368 , 810531 , 810549 );
Copy