4
7.31 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
466013
417423
709919
629915
655717
654745
737569
658346
819293
657391
728942
795060
803799
655627
712629
411223
511806
657654
799746
749208
658077
738418
757555
495581
792566
817886
807552
786107
655624
657370
455675
740600
811598
496981
654673
786897
628586
443625
454976
784200
797517
821652
503462
655121
823368
568698
655348
588726
621343
749100
459518
520566
511794
584192
439249
474395
607212
486906
386122
450178
609237
674971
520130
577364
516123
]
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 (466013 , 417423 , 709919 , 629915 , 655717 , 654745 , 737569 , 658346 , 819293 , 657391 , 728942 , 795060 , 803799 , 655627 , 712629 , 411223 , 511806 , 657654 , 799746 , 749208 , 658077 , 738418 , 757555 , 495581 , 792566 , 817886 , 807552 , 786107 , 655624 , 657370 , 455675 , 740600 , 811598 , 496981 , 654673 , 786897 , 628586 , 443625 , 454976 , 784200 , 797517 , 821652 , 503462 , 655121 , 823368 , 568698 , 655348 , 588726 , 621343 , 749100 , 459518 , 520566 , 511794 , 584192 , 439249 , 474395 , 607212 , 486906 , 386122 , 450178 , 609237 , 674971 , 520130 , 577364 , 516123 );
Copy
5
2.50 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
386122
411223
417423
439249
443625
450178
454976
455675
459518
466013
474395
486906
495581
496981
503462
511794
511806
516123
520130
520566
568698
577364
584192
588726
607212
609237
621343
628586
629915
654673
654745
655121
655348
655624
655627
655717
657370
657391
657654
658077
658346
674971
709919
712629
728942
737569
738418
740600
749100
749208
757555
784200
786107
786897
792566
795060
797517
799746
803799
807552
811598
817886
819293
821652
823368
]
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 (386122 , 411223 , 417423 , 439249 , 443625 , 450178 , 454976 , 455675 , 459518 , 466013 , 474395 , 486906 , 495581 , 496981 , 503462 , 511794 , 511806 , 516123 , 520130 , 520566 , 568698 , 577364 , 584192 , 588726 , 607212 , 609237 , 621343 , 628586 , 629915 , 654673 , 654745 , 655121 , 655348 , 655624 , 655627 , 655717 , 657370 , 657391 , 657654 , 658077 , 658346 , 674971 , 709919 , 712629 , 728942 , 737569 , 738418 , 740600 , 749100 , 749208 , 757555 , 784200 , 786107 , 786897 , 792566 , 795060 , 797517 , 799746 , 803799 , 807552 , 811598 , 817886 , 819293 , 821652 , 823368 );
Copy
6
73.04 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
386122
411223
417423
439249
443625
450178
454976
455675
459518
466013
474395
486906
495581
496981
503462
511794
511806
516123
520130
520566
568698
577364
584192
588726
607212
609237
621343
628586
629915
654673
654745
655121
655348
655624
655627
655717
657370
657391
657654
658077
658346
674971
709919
712629
728942
737569
738418
740600
749100
749208
757555
784200
786107
786897
792566
795060
797517
799746
803799
807552
811598
817886
819293
821652
823368
]
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 (386122 , 411223 , 417423 , 439249 , 443625 , 450178 , 454976 , 455675 , 459518 , 466013 , 474395 , 486906 , 495581 , 496981 , 503462 , 511794 , 511806 , 516123 , 520130 , 520566 , 568698 , 577364 , 584192 , 588726 , 607212 , 609237 , 621343 , 628586 , 629915 , 654673 , 654745 , 655121 , 655348 , 655624 , 655627 , 655717 , 657370 , 657391 , 657654 , 658077 , 658346 , 674971 , 709919 , 712629 , 728942 , 737569 , 738418 , 740600 , 749100 , 749208 , 757555 , 784200 , 786107 , 786897 , 792566 , 795060 , 797517 , 799746 , 803799 , 807552 , 811598 , 817886 , 819293 , 821652 , 823368 );
Copy