4
14.07 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
701199
689526
804622
757234
715152
796297
528657
556704
628515
516493
414123
442158
462948
457908
503787
512365
516373
505355
475869
558512
647813
659974
650511
720459
629665
782821
736289
459959
510230
528156
586981
528212
458612
534434
516364
579990
717862
594245
598213
745309
745962
629580
452764
455015
434645
478712
417317
512819
499711
492005
552679
563943
688069
756768
502388
525399
495352
624137
471780
512375
528203
679004
457140
527121
597689
517414
]
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 (701199 , 689526 , 804622 , 757234 , 715152 , 796297 , 528657 , 556704 , 628515 , 516493 , 414123 , 442158 , 462948 , 457908 , 503787 , 512365 , 516373 , 505355 , 475869 , 558512 , 647813 , 659974 , 650511 , 720459 , 629665 , 782821 , 736289 , 459959 , 510230 , 528156 , 586981 , 528212 , 458612 , 534434 , 516364 , 579990 , 717862 , 594245 , 598213 , 745309 , 745962 , 629580 , 452764 , 455015 , 434645 , 478712 , 417317 , 512819 , 499711 , 492005 , 552679 , 563943 , 688069 , 756768 , 502388 , 525399 , 495352 , 624137 , 471780 , 512375 , 528203 , 679004 , 457140 , 527121 , 597689 , 517414 );
Copy
5
2.28 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
414123
417317
434645
442158
452764
455015
457140
457908
458612
459959
462948
471780
475869
478712
492005
495352
499711
502388
503787
505355
510230
512365
512375
512819
516364
516373
516493
517414
525399
527121
528156
528203
528212
528657
534434
552679
556704
558512
563943
579990
586981
594245
597689
598213
624137
628515
629580
629665
647813
650511
659974
679004
688069
689526
701199
715152
717862
720459
736289
745309
745962
756768
757234
782821
796297
804622
]
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 (414123 , 417317 , 434645 , 442158 , 452764 , 455015 , 457140 , 457908 , 458612 , 459959 , 462948 , 471780 , 475869 , 478712 , 492005 , 495352 , 499711 , 502388 , 503787 , 505355 , 510230 , 512365 , 512375 , 512819 , 516364 , 516373 , 516493 , 517414 , 525399 , 527121 , 528156 , 528203 , 528212 , 528657 , 534434 , 552679 , 556704 , 558512 , 563943 , 579990 , 586981 , 594245 , 597689 , 598213 , 624137 , 628515 , 629580 , 629665 , 647813 , 650511 , 659974 , 679004 , 688069 , 689526 , 701199 , 715152 , 717862 , 720459 , 736289 , 745309 , 745962 , 756768 , 757234 , 782821 , 796297 , 804622 );
Copy
6
86.75 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
414123
417317
434645
442158
452764
455015
457140
457908
458612
459959
462948
471780
475869
478712
492005
495352
499711
502388
503787
505355
510230
512365
512375
512819
516364
516373
516493
517414
525399
527121
528156
528203
528212
528657
534434
552679
556704
558512
563943
579990
586981
594245
597689
598213
624137
628515
629580
629665
647813
650511
659974
679004
688069
689526
701199
715152
717862
720459
736289
745309
745962
756768
757234
782821
796297
804622
]
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 (414123 , 417317 , 434645 , 442158 , 452764 , 455015 , 457140 , 457908 , 458612 , 459959 , 462948 , 471780 , 475869 , 478712 , 492005 , 495352 , 499711 , 502388 , 503787 , 505355 , 510230 , 512365 , 512375 , 512819 , 516364 , 516373 , 516493 , 517414 , 525399 , 527121 , 528156 , 528203 , 528212 , 528657 , 534434 , 552679 , 556704 , 558512 , 563943 , 579990 , 586981 , 594245 , 597689 , 598213 , 624137 , 628515 , 629580 , 629665 , 647813 , 650511 , 659974 , 679004 , 688069 , 689526 , 701199 , 715152 , 717862 , 720459 , 736289 , 745309 , 745962 , 756768 , 757234 , 782821 , 796297 , 804622 );
Copy