4
9.60 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
430936
146393
651681
556986
783530
533940
814660
520287
580330
650511
736101
714452
576324
714428
603429
814829
581352
678067
603009
632707
145893
384895
823325
631179
670770
749074
742577
596177
800821
703909
395271
417697
694423
605321
382594
9938
820949
604179
756269
448853
185523
617369
53305
414087
464270
23135
426031
13875
822272
645700
669570
382712
426429
417428
820924
597977
598801
597014
397860
466034
418407
689272
400440
489463
426032
474379
522867
445644
451493
650844
491646
598391
646427
427981
]
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 (430936 , 146393 , 651681 , 556986 , 783530 , 533940 , 814660 , 520287 , 580330 , 650511 , 736101 , 714452 , 576324 , 714428 , 603429 , 814829 , 581352 , 678067 , 603009 , 632707 , 145893 , 384895 , 823325 , 631179 , 670770 , 749074 , 742577 , 596177 , 800821 , 703909 , 395271 , 417697 , 694423 , 605321 , 382594 , 9938 , 820949 , 604179 , 756269 , 448853 , 185523 , 617369 , 53305 , 414087 , 464270 , 23135 , 426031 , 13875 , 822272 , 645700 , 669570 , 382712 , 426429 , 417428 , 820924 , 597977 , 598801 , 597014 , 397860 , 466034 , 418407 , 689272 , 400440 , 489463 , 426032 , 474379 , 522867 , 445644 , 451493 , 650844 , 491646 , 598391 , 646427 , 427981 );
Copy
5
2.43 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
9938
13875
23135
53305
145893
146393
185523
382594
382712
384895
395271
397860
400440
414087
417428
417697
418407
426031
426032
426429
427981
430936
445644
448853
451493
464270
466034
474379
489463
491646
520287
522867
533940
556986
576324
580330
581352
596177
597014
597977
598391
598801
603009
603429
604179
605321
617369
631179
632707
645700
646427
650511
650844
651681
669570
670770
678067
689272
694423
703909
714428
714452
736101
742577
749074
756269
783530
800821
814660
814829
820924
820949
822272
]
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 (9938 , 13875 , 23135 , 53305 , 145893 , 146393 , 185523 , 382594 , 382712 , 384895 , 395271 , 397860 , 400440 , 414087 , 417428 , 417697 , 418407 , 426031 , 426032 , 426429 , 427981 , 430936 , 445644 , 448853 , 451493 , 464270 , 466034 , 474379 , 489463 , 491646 , 520287 , 522867 , 533940 , 556986 , 576324 , 580330 , 581352 , 596177 , 597014 , 597977 , 598391 , 598801 , 603009 , 603429 , 604179 , 605321 , 617369 , 631179 , 632707 , 645700 , 646427 , 650511 , 650844 , 651681 , 669570 , 670770 , 678067 , 689272 , 694423 , 703909 , 714428 , 714452 , 736101 , 742577 , 749074 , 756269 , 783530 , 800821 , 814660 , 814829 , 820924 , 820949 , 822272 );
Copy
6
78.00 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
9938
13875
23135
53305
145893
146393
185523
382594
382712
384895
395271
397860
400440
414087
417428
417697
418407
426031
426032
426429
427981
430936
445644
448853
451493
464270
466034
474379
489463
491646
520287
522867
533940
556986
576324
580330
581352
596177
597014
597977
598391
598801
603009
603429
604179
605321
617369
631179
632707
645700
646427
650511
650844
651681
669570
670770
678067
689272
694423
703909
714428
714452
736101
742577
749074
756269
783530
800821
814660
814829
820924
820949
822272
]
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 (9938 , 13875 , 23135 , 53305 , 145893 , 146393 , 185523 , 382594 , 382712 , 384895 , 395271 , 397860 , 400440 , 414087 , 417428 , 417697 , 418407 , 426031 , 426032 , 426429 , 427981 , 430936 , 445644 , 448853 , 451493 , 464270 , 466034 , 474379 , 489463 , 491646 , 520287 , 522867 , 533940 , 556986 , 576324 , 580330 , 581352 , 596177 , 597014 , 597977 , 598391 , 598801 , 603009 , 603429 , 604179 , 605321 , 617369 , 631179 , 632707 , 645700 , 646427 , 650511 , 650844 , 651681 , 669570 , 670770 , 678067 , 689272 , 694423 , 703909 , 714428 , 714452 , 736101 , 742577 , 749074 , 756269 , 783530 , 800821 , 814660 , 814829 , 820924 , 820949 , 822272 );
Copy