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