3
9.95 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
569526
588090
603652
621270
451847
463657
455752
434792
456708
461613
447416
455836
511603
488081
493842
513346
523014
498937
525784
721133
721129
593279
424303
456531
566637
552415
446050
471341
460067
496903
459734
532022
562953
554805
569096
596739
447718
524743
513222
495565
523819
472065
456825
441439
472524
523154
464366
484249
499037
597956
457488
463644
527656
571834
501710
492733
560189
601924
469762
440686
559722
515610
515619
517176
621330
488398
]
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 (569526 , 588090 , 603652 , 621270 , 451847 , 463657 , 455752 , 434792 , 456708 , 461613 , 447416 , 455836 , 511603 , 488081 , 493842 , 513346 , 523014 , 498937 , 525784 , 721133 , 721129 , 593279 , 424303 , 456531 , 566637 , 552415 , 446050 , 471341 , 460067 , 496903 , 459734 , 532022 , 562953 , 554805 , 569096 , 596739 , 447718 , 524743 , 513222 , 495565 , 523819 , 472065 , 456825 , 441439 , 472524 , 523154 , 464366 , 484249 , 499037 , 597956 , 457488 , 463644 , 527656 , 571834 , 501710 , 492733 , 560189 , 601924 , 469762 , 440686 , 559722 , 515610 , 515619 , 517176 , 621330 , 488398 );
Copy
4
2.32 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
424303
434792
440686
441439
446050
447416
447718
451847
455752
455836
456531
456708
456825
457488
459734
460067
461613
463644
463657
464366
469762
471341
472065
472524
484249
488081
488398
492733
493842
495565
496903
498937
499037
501710
511603
513222
513346
515610
515619
517176
523014
523154
523819
524743
525784
527656
532022
552415
554805
559722
560189
562953
566637
569096
569526
571834
588090
593279
596739
597956
601924
603652
621270
621330
721129
721133
]
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 (424303 , 434792 , 440686 , 441439 , 446050 , 447416 , 447718 , 451847 , 455752 , 455836 , 456531 , 456708 , 456825 , 457488 , 459734 , 460067 , 461613 , 463644 , 463657 , 464366 , 469762 , 471341 , 472065 , 472524 , 484249 , 488081 , 488398 , 492733 , 493842 , 495565 , 496903 , 498937 , 499037 , 501710 , 511603 , 513222 , 513346 , 515610 , 515619 , 517176 , 523014 , 523154 , 523819 , 524743 , 525784 , 527656 , 532022 , 552415 , 554805 , 559722 , 560189 , 562953 , 566637 , 569096 , 569526 , 571834 , 588090 , 593279 , 596739 , 597956 , 601924 , 603652 , 621270 , 621330 , 721129 , 721133 );
Copy
5
91.32 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
424303
434792
440686
441439
446050
447416
447718
451847
455752
455836
456531
456708
456825
457488
459734
460067
461613
463644
463657
464366
469762
471341
472065
472524
484249
488081
488398
492733
493842
495565
496903
498937
499037
501710
511603
513222
513346
515610
515619
517176
523014
523154
523819
524743
525784
527656
532022
552415
554805
559722
560189
562953
566637
569096
569526
571834
588090
593279
596739
597956
601924
603652
621270
621330
721129
721133
]
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 (424303 , 434792 , 440686 , 441439 , 446050 , 447416 , 447718 , 451847 , 455752 , 455836 , 456531 , 456708 , 456825 , 457488 , 459734 , 460067 , 461613 , 463644 , 463657 , 464366 , 469762 , 471341 , 472065 , 472524 , 484249 , 488081 , 488398 , 492733 , 493842 , 495565 , 496903 , 498937 , 499037 , 501710 , 511603 , 513222 , 513346 , 515610 , 515619 , 517176 , 523014 , 523154 , 523819 , 524743 , 525784 , 527656 , 532022 , 552415 , 554805 , 559722 , 560189 , 562953 , 566637 , 569096 , 569526 , 571834 , 588090 , 593279 , 596739 , 597956 , 601924 , 603652 , 621270 , 621330 , 721129 , 721133 );
Copy