3
15.63 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
505086
602766
456437
483628
493167
524587
609248
653463
654534
622003
611591
555106
576030
600076
464997
450910
454411
510427
492822
503702
506865
525612
491369
498937
490265
597573
599938
597490
658564
650291
609628
558833
564981
588525
491910
653244
572053
656708
510025
639460
482298
454439
504700
526524
489194
597946
597966
474639
613706
621269
618146
483208
474654
600074
598073
572059
623011
608048
563396
621975
596515
601918
552511
592988
596658
478771
597240
452953
]
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 (505086 , 602766 , 456437 , 483628 , 493167 , 524587 , 609248 , 653463 , 654534 , 622003 , 611591 , 555106 , 576030 , 600076 , 464997 , 450910 , 454411 , 510427 , 492822 , 503702 , 506865 , 525612 , 491369 , 498937 , 490265 , 597573 , 599938 , 597490 , 658564 , 650291 , 609628 , 558833 , 564981 , 588525 , 491910 , 653244 , 572053 , 656708 , 510025 , 639460 , 482298 , 454439 , 504700 , 526524 , 489194 , 597946 , 597966 , 474639 , 613706 , 621269 , 618146 , 483208 , 474654 , 600074 , 598073 , 572059 , 623011 , 608048 , 563396 , 621975 , 596515 , 601918 , 552511 , 592988 , 596658 , 478771 , 597240 , 452953 );
Copy
4
2.65 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
450910
452953
454411
454439
456437
464997
474639
474654
478771
482298
483208
483628
489194
490265
491369
491910
492822
493167
498937
503702
504700
505086
506865
510025
510427
524587
525612
526524
552511
555106
558833
563396
564981
572053
572059
576030
588525
592988
596515
596658
597240
597490
597573
597946
597966
598073
599938
600074
600076
601918
602766
608048
609248
609628
611591
613706
618146
621269
621975
622003
623011
639460
650291
653244
653463
654534
656708
658564
]
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 (450910 , 452953 , 454411 , 454439 , 456437 , 464997 , 474639 , 474654 , 478771 , 482298 , 483208 , 483628 , 489194 , 490265 , 491369 , 491910 , 492822 , 493167 , 498937 , 503702 , 504700 , 505086 , 506865 , 510025 , 510427 , 524587 , 525612 , 526524 , 552511 , 555106 , 558833 , 563396 , 564981 , 572053 , 572059 , 576030 , 588525 , 592988 , 596515 , 596658 , 597240 , 597490 , 597573 , 597946 , 597966 , 598073 , 599938 , 600074 , 600076 , 601918 , 602766 , 608048 , 609248 , 609628 , 611591 , 613706 , 618146 , 621269 , 621975 , 622003 , 623011 , 639460 , 650291 , 653244 , 653463 , 654534 , 656708 , 658564 );
Copy
5
92.25 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
450910
452953
454411
454439
456437
464997
474639
474654
478771
482298
483208
483628
489194
490265
491369
491910
492822
493167
498937
503702
504700
505086
506865
510025
510427
524587
525612
526524
552511
555106
558833
563396
564981
572053
572059
576030
588525
592988
596515
596658
597240
597490
597573
597946
597966
598073
599938
600074
600076
601918
602766
608048
609248
609628
611591
613706
618146
621269
621975
622003
623011
639460
650291
653244
653463
654534
656708
658564
]
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 (450910 , 452953 , 454411 , 454439 , 456437 , 464997 , 474639 , 474654 , 478771 , 482298 , 483208 , 483628 , 489194 , 490265 , 491369 , 491910 , 492822 , 493167 , 498937 , 503702 , 504700 , 505086 , 506865 , 510025 , 510427 , 524587 , 525612 , 526524 , 552511 , 555106 , 558833 , 563396 , 564981 , 572053 , 572059 , 576030 , 588525 , 592988 , 596515 , 596658 , 597240 , 597490 , 597573 , 597946 , 597966 , 598073 , 599938 , 600074 , 600076 , 601918 , 602766 , 608048 , 609248 , 609628 , 611591 , 613706 , 618146 , 621269 , 621975 , 622003 , 623011 , 639460 , 650291 , 653244 , 653463 , 654534 , 656708 , 658564 );
Copy