4
12.39 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
793042
425472
428515
515023
533505
498434
521461
536913
559833
645852
557090
585323
626876
626279
599637
760705
400829
444836
417435
429695
429782
453568
476861
446220
518233
528425
516968
525180
527592
564177
716980
720262
621353
726466
608620
621356
502998
487582
650806
441645
464111
565195
421043
514309
615765
453326
514615
492268
552322
559696
618718
418591
384938
485209
543565
611241
553190
454922
428166
585050
497935
524490
531920
493958
]
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 (793042 , 425472 , 428515 , 515023 , 533505 , 498434 , 521461 , 536913 , 559833 , 645852 , 557090 , 585323 , 626876 , 626279 , 599637 , 760705 , 400829 , 444836 , 417435 , 429695 , 429782 , 453568 , 476861 , 446220 , 518233 , 528425 , 516968 , 525180 , 527592 , 564177 , 716980 , 720262 , 621353 , 726466 , 608620 , 621356 , 502998 , 487582 , 650806 , 441645 , 464111 , 565195 , 421043 , 514309 , 615765 , 453326 , 514615 , 492268 , 552322 , 559696 , 618718 , 418591 , 384938 , 485209 , 543565 , 611241 , 553190 , 454922 , 428166 , 585050 , 497935 , 524490 , 531920 , 493958 );
Copy
5
2.41 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
384938
400829
417435
418591
421043
425472
428166
428515
429695
429782
441645
444836
446220
453326
453568
454922
464111
476861
485209
487582
492268
493958
497935
498434
502998
514309
514615
515023
516968
518233
521461
524490
525180
527592
528425
531920
533505
536913
543565
552322
553190
557090
559696
559833
564177
565195
585050
585323
599637
608620
611241
615765
618718
621353
621356
626279
626876
645852
650806
716980
720262
726466
760705
793042
]
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 (384938 , 400829 , 417435 , 418591 , 421043 , 425472 , 428166 , 428515 , 429695 , 429782 , 441645 , 444836 , 446220 , 453326 , 453568 , 454922 , 464111 , 476861 , 485209 , 487582 , 492268 , 493958 , 497935 , 498434 , 502998 , 514309 , 514615 , 515023 , 516968 , 518233 , 521461 , 524490 , 525180 , 527592 , 528425 , 531920 , 533505 , 536913 , 543565 , 552322 , 553190 , 557090 , 559696 , 559833 , 564177 , 565195 , 585050 , 585323 , 599637 , 608620 , 611241 , 615765 , 618718 , 621353 , 621356 , 626279 , 626876 , 645852 , 650806 , 716980 , 720262 , 726466 , 760705 , 793042 );
Copy
6
82.53 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
384938
400829
417435
418591
421043
425472
428166
428515
429695
429782
441645
444836
446220
453326
453568
454922
464111
476861
485209
487582
492268
493958
497935
498434
502998
514309
514615
515023
516968
518233
521461
524490
525180
527592
528425
531920
533505
536913
543565
552322
553190
557090
559696
559833
564177
565195
585050
585323
599637
608620
611241
615765
618718
621353
621356
626279
626876
645852
650806
716980
720262
726466
760705
793042
]
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 (384938 , 400829 , 417435 , 418591 , 421043 , 425472 , 428166 , 428515 , 429695 , 429782 , 441645 , 444836 , 446220 , 453326 , 453568 , 454922 , 464111 , 476861 , 485209 , 487582 , 492268 , 493958 , 497935 , 498434 , 502998 , 514309 , 514615 , 515023 , 516968 , 518233 , 521461 , 524490 , 525180 , 527592 , 528425 , 531920 , 533505 , 536913 , 543565 , 552322 , 553190 , 557090 , 559696 , 559833 , 564177 , 565195 , 585050 , 585323 , 599637 , 608620 , 611241 , 615765 , 618718 , 621353 , 621356 , 626279 , 626876 , 645852 , 650806 , 716980 , 720262 , 726466 , 760705 , 793042 );
Copy