87.50 ms (71.40%)
1
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
397005
397869
419664
431803
447911
450287
453705
454425
455259
459197
459338
473463
474360
490188
495204
503736
509656
514004
514924
537591
541239
574153
607396
607438
607509
607636
618687
620391
629973
630370
668706
695160
698135
711566
726319
750891
756469
760768
775558
778185
781862
782155
786600
789380
792961
796237
797521
800470
801222
801401
802671
803176
803914
807830
809076
810229
810993
812749
814990
817802
819196
826418
828088
]
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 (397005 , 397869 , 419664 , 431803 , 447911 , 450287 , 453705 , 454425 , 455259 , 459197 , 459338 , 473463 , 474360 , 490188 , 495204 , 503736 , 509656 , 514004 , 514924 , 537591 , 541239 , 574153 , 607396 , 607438 , 607509 , 607636 , 618687 , 620391 , 629973 , 630370 , 668706 , 695160 , 698135 , 711566 , 726319 , 750891 , 756469 , 760768 , 775558 , 778185 , 781862 , 782155 , 786600 , 789380 , 792961 , 796237 , 797521 , 800470 , 801222 , 801401 , 802671 , 803176 , 803914 , 807830 , 809076 , 810229 , 810993 , 812749 , 814990 , 817802 , 819196 , 826418 , 828088 );
Copy
10.07 ms (8.22%)
1
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
828088
803914
789380
397869
711566
797521
760768
629973
817802
810993
778185
726319
397005
819196
775558
803176
786600
802671
796237
607438
620391
800470
459197
574153
607509
503736
474360
618687
509656
454425
473463
541239
668706
419664
450287
826418
495204
698135
792961
801222
607396
630370
814990
781862
750891
782155
695160
607636
801401
807830
537591
809076
812749
459338
810229
431803
514004
514924
490188
447911
453705
455259
756469
]
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 (828088 , 803914 , 789380 , 397869 , 711566 , 797521 , 760768 , 629973 , 817802 , 810993 , 778185 , 726319 , 397005 , 819196 , 775558 , 803176 , 786600 , 802671 , 796237 , 607438 , 620391 , 800470 , 459197 , 574153 , 607509 , 503736 , 474360 , 618687 , 509656 , 454425 , 473463 , 541239 , 668706 , 419664 , 450287 , 826418 , 495204 , 698135 , 792961 , 801222 , 607396 , 630370 , 814990 , 781862 , 750891 , 782155 , 695160 , 607636 , 801401 , 807830 , 537591 , 809076 , 812749 , 459338 , 810229 , 431803 , 514004 , 514924 , 490188 , 447911 , 453705 , 455259 , 756469 );
Copy
2.73 ms (2.23%)
1
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
397005
397869
419664
431803
447911
450287
453705
454425
455259
459197
459338
473463
474360
490188
495204
503736
509656
514004
514924
537591
541239
574153
607396
607438
607509
607636
618687
620391
629973
630370
668706
695160
698135
711566
726319
750891
756469
760768
775558
778185
781862
782155
786600
789380
792961
796237
797521
800470
801222
801401
802671
803176
803914
807830
809076
810229
810993
812749
814990
817802
819196
826418
828088
]
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 (397005 , 397869 , 419664 , 431803 , 447911 , 450287 , 453705 , 454425 , 455259 , 459197 , 459338 , 473463 , 474360 , 490188 , 495204 , 503736 , 509656 , 514004 , 514924 , 537591 , 541239 , 574153 , 607396 , 607438 , 607509 , 607636 , 618687 , 620391 , 629973 , 630370 , 668706 , 695160 , 698135 , 711566 , 726319 , 750891 , 756469 , 760768 , 775558 , 778185 , 781862 , 782155 , 786600 , 789380 , 792961 , 796237 , 797521 , 800470 , 801222 , 801401 , 802671 , 803176 , 803914 , 807830 , 809076 , 810229 , 810993 , 812749 , 814990 , 817802 , 819196 , 826418 , 828088 );
Copy