3
11.42 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
552883
552914
477747
566716
552016
512185
552901
566001
558423
694200
428267
632682
559853
634866
742469
724460
737136
512033
802831
415917
737107
556408
550764
163370
552005
557208
447853
586624
622622
510585
122846
435645
709699
389067
623817
510577
427494
750182
559877
420135
162863
556382
565995
580269
559854
552911
550208
566000
629319
551969
581393
573424
551066
558368
630192
593396
512205
550760
552055
565977
557518
601024
557205
557510
565982
565997
566002
557812
510581
512198
550742
557503
565983
565984
628175
]
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 (552883 , 552914 , 477747 , 566716 , 552016 , 512185 , 552901 , 566001 , 558423 , 694200 , 428267 , 632682 , 559853 , 634866 , 742469 , 724460 , 737136 , 512033 , 802831 , 415917 , 737107 , 556408 , 550764 , 163370 , 552005 , 557208 , 447853 , 586624 , 622622 , 510585 , 122846 , 435645 , 709699 , 389067 , 623817 , 510577 , 427494 , 750182 , 559877 , 420135 , 162863 , 556382 , 565995 , 580269 , 559854 , 552911 , 550208 , 566000 , 629319 , 551969 , 581393 , 573424 , 551066 , 558368 , 630192 , 593396 , 512205 , 550760 , 552055 , 565977 , 557518 , 601024 , 557205 , 557510 , 565982 , 565997 , 566002 , 557812 , 510581 , 512198 , 550742 , 557503 , 565983 , 565984 , 628175 );
Copy
4
3.11 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
122846
162863
163370
389067
415917
420135
427494
428267
435645
447853
477747
510577
510581
510585
512033
512185
512198
512205
550208
550742
550760
550764
551066
551969
552005
552016
552055
552883
552901
552911
552914
556382
556408
557205
557208
557503
557510
557518
557812
558368
558423
559853
559854
559877
565977
565982
565983
565984
565995
565997
566000
566001
566002
566716
573424
580269
581393
586624
593396
601024
622622
623817
628175
629319
630192
632682
634866
694200
709699
724460
737107
737136
742469
750182
802831
]
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 (122846 , 162863 , 163370 , 389067 , 415917 , 420135 , 427494 , 428267 , 435645 , 447853 , 477747 , 510577 , 510581 , 510585 , 512033 , 512185 , 512198 , 512205 , 550208 , 550742 , 550760 , 550764 , 551066 , 551969 , 552005 , 552016 , 552055 , 552883 , 552901 , 552911 , 552914 , 556382 , 556408 , 557205 , 557208 , 557503 , 557510 , 557518 , 557812 , 558368 , 558423 , 559853 , 559854 , 559877 , 565977 , 565982 , 565983 , 565984 , 565995 , 565997 , 566000 , 566001 , 566002 , 566716 , 573424 , 580269 , 581393 , 586624 , 593396 , 601024 , 622622 , 623817 , 628175 , 629319 , 630192 , 632682 , 634866 , 694200 , 709699 , 724460 , 737107 , 737136 , 742469 , 750182 , 802831 );
Copy
5
88.62 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
122846
162863
163370
389067
415917
420135
427494
428267
435645
447853
477747
510577
510581
510585
512033
512185
512198
512205
550208
550742
550760
550764
551066
551969
552005
552016
552055
552883
552901
552911
552914
556382
556408
557205
557208
557503
557510
557518
557812
558368
558423
559853
559854
559877
565977
565982
565983
565984
565995
565997
566000
566001
566002
566716
573424
580269
581393
586624
593396
601024
622622
623817
628175
629319
630192
632682
634866
694200
709699
724460
737107
737136
742469
750182
802831
]
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 (122846 , 162863 , 163370 , 389067 , 415917 , 420135 , 427494 , 428267 , 435645 , 447853 , 477747 , 510577 , 510581 , 510585 , 512033 , 512185 , 512198 , 512205 , 550208 , 550742 , 550760 , 550764 , 551066 , 551969 , 552005 , 552016 , 552055 , 552883 , 552901 , 552911 , 552914 , 556382 , 556408 , 557205 , 557208 , 557503 , 557510 , 557518 , 557812 , 558368 , 558423 , 559853 , 559854 , 559877 , 565977 , 565982 , 565983 , 565984 , 565995 , 565997 , 566000 , 566001 , 566002 , 566716 , 573424 , 580269 , 581393 , 586624 , 593396 , 601024 , 622622 , 623817 , 628175 , 629319 , 630192 , 632682 , 634866 , 694200 , 709699 , 724460 , 737107 , 737136 , 742469 , 750182 , 802831 );
Copy