3
16.99 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
565032
600936
421389
505725
652756
549569
458191
519679
681121
637421
628415
637016
420447
500795
581228
584217
459512
541076
505039
597015
463482
496983
498909
532572
629967
451141
569020
634193
810109
490753
497865
526698
429006
474777
587886
445661
526261
510200
523907
466954
524639
599081
598899
421825
551995
571257
598644
627812
474663
504450
513750
478020
631878
460535
439759
529290
518111
486862
566340
598097
485061
459513
517779
464953
519563
527608
598172
568062
603047
]
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 (565032 , 600936 , 421389 , 505725 , 652756 , 549569 , 458191 , 519679 , 681121 , 637421 , 628415 , 637016 , 420447 , 500795 , 581228 , 584217 , 459512 , 541076 , 505039 , 597015 , 463482 , 496983 , 498909 , 532572 , 629967 , 451141 , 569020 , 634193 , 810109 , 490753 , 497865 , 526698 , 429006 , 474777 , 587886 , 445661 , 526261 , 510200 , 523907 , 466954 , 524639 , 599081 , 598899 , 421825 , 551995 , 571257 , 598644 , 627812 , 474663 , 504450 , 513750 , 478020 , 631878 , 460535 , 439759 , 529290 , 518111 , 486862 , 566340 , 598097 , 485061 , 459513 , 517779 , 464953 , 519563 , 527608 , 598172 , 568062 , 603047 );
Copy
4
2.40 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
420447
421389
421825
429006
439759
445661
451141
458191
459512
459513
460535
463482
464953
466954
474663
474777
478020
485061
486862
490753
496983
497865
498909
500795
504450
505039
505725
510200
513750
517779
518111
519563
519679
523907
524639
526261
526698
527608
529290
532572
541076
549569
551995
565032
566340
568062
569020
571257
581228
584217
587886
597015
598097
598172
598644
598899
599081
600936
603047
627812
628415
629967
631878
634193
637016
637421
652756
681121
810109
]
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 (420447 , 421389 , 421825 , 429006 , 439759 , 445661 , 451141 , 458191 , 459512 , 459513 , 460535 , 463482 , 464953 , 466954 , 474663 , 474777 , 478020 , 485061 , 486862 , 490753 , 496983 , 497865 , 498909 , 500795 , 504450 , 505039 , 505725 , 510200 , 513750 , 517779 , 518111 , 519563 , 519679 , 523907 , 524639 , 526261 , 526698 , 527608 , 529290 , 532572 , 541076 , 549569 , 551995 , 565032 , 566340 , 568062 , 569020 , 571257 , 581228 , 584217 , 587886 , 597015 , 598097 , 598172 , 598644 , 598899 , 599081 , 600936 , 603047 , 627812 , 628415 , 629967 , 631878 , 634193 , 637016 , 637421 , 652756 , 681121 , 810109 );
Copy
5
96.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
420447
421389
421825
429006
439759
445661
451141
458191
459512
459513
460535
463482
464953
466954
474663
474777
478020
485061
486862
490753
496983
497865
498909
500795
504450
505039
505725
510200
513750
517779
518111
519563
519679
523907
524639
526261
526698
527608
529290
532572
541076
549569
551995
565032
566340
568062
569020
571257
581228
584217
587886
597015
598097
598172
598644
598899
599081
600936
603047
627812
628415
629967
631878
634193
637016
637421
652756
681121
810109
]
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 (420447 , 421389 , 421825 , 429006 , 439759 , 445661 , 451141 , 458191 , 459512 , 459513 , 460535 , 463482 , 464953 , 466954 , 474663 , 474777 , 478020 , 485061 , 486862 , 490753 , 496983 , 497865 , 498909 , 500795 , 504450 , 505039 , 505725 , 510200 , 513750 , 517779 , 518111 , 519563 , 519679 , 523907 , 524639 , 526261 , 526698 , 527608 , 529290 , 532572 , 541076 , 549569 , 551995 , 565032 , 566340 , 568062 , 569020 , 571257 , 581228 , 584217 , 587886 , 597015 , 598097 , 598172 , 598644 , 598899 , 599081 , 600936 , 603047 , 627812 , 628415 , 629967 , 631878 , 634193 , 637016 , 637421 , 652756 , 681121 , 810109 );
Copy