3
11.04 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
800415
538192
381885
805654
663551
636530
690934
692818
601519
567939
756981
412814
693502
664476
496585
573083
696593
712568
445206
679372
742363
441111
630830
492222
412180
458094
282649
727325
774688
572999
504078
696594
696607
696596
628097
459503
625771
695125
767018
425875
573871
524725
501653
449060
416696
596228
538221
443245
484879
440079
490854
568518
381956
416683
422879
416522
628096
696598
628094
767025
513160
557992
679379
679389
624191
456162
388281
679387
7446
452644
636801
629021
]
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 (800415 , 538192 , 381885 , 805654 , 663551 , 636530 , 690934 , 692818 , 601519 , 567939 , 756981 , 412814 , 693502 , 664476 , 496585 , 573083 , 696593 , 712568 , 445206 , 679372 , 742363 , 441111 , 630830 , 492222 , 412180 , 458094 , 282649 , 727325 , 774688 , 572999 , 504078 , 696594 , 696607 , 696596 , 628097 , 459503 , 625771 , 695125 , 767018 , 425875 , 573871 , 524725 , 501653 , 449060 , 416696 , 596228 , 538221 , 443245 , 484879 , 440079 , 490854 , 568518 , 381956 , 416683 , 422879 , 416522 , 628096 , 696598 , 628094 , 767025 , 513160 , 557992 , 679379 , 679389 , 624191 , 456162 , 388281 , 679387 , 7446 , 452644 , 636801 , 629021 );
Copy
4
2.18 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
7446
282649
381885
381956
388281
412180
412814
416522
416683
416696
422879
425875
440079
441111
443245
445206
449060
452644
456162
458094
459503
484879
490854
492222
496585
501653
504078
513160
524725
538192
538221
557992
567939
568518
572999
573083
573871
596228
601519
624191
625771
628094
628096
628097
629021
630830
636530
636801
663551
664476
679372
679379
679387
679389
690934
692818
693502
695125
696593
696594
696596
696598
696607
712568
727325
742363
756981
767018
767025
774688
800415
805654
]
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 (7446 , 282649 , 381885 , 381956 , 388281 , 412180 , 412814 , 416522 , 416683 , 416696 , 422879 , 425875 , 440079 , 441111 , 443245 , 445206 , 449060 , 452644 , 456162 , 458094 , 459503 , 484879 , 490854 , 492222 , 496585 , 501653 , 504078 , 513160 , 524725 , 538192 , 538221 , 557992 , 567939 , 568518 , 572999 , 573083 , 573871 , 596228 , 601519 , 624191 , 625771 , 628094 , 628096 , 628097 , 629021 , 630830 , 636530 , 636801 , 663551 , 664476 , 679372 , 679379 , 679387 , 679389 , 690934 , 692818 , 693502 , 695125 , 696593 , 696594 , 696596 , 696598 , 696607 , 712568 , 727325 , 742363 , 756981 , 767018 , 767025 , 774688 , 800415 , 805654 );
Copy
5
106.81 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
7446
282649
381885
381956
388281
412180
412814
416522
416683
416696
422879
425875
440079
441111
443245
445206
449060
452644
456162
458094
459503
484879
490854
492222
496585
501653
504078
513160
524725
538192
538221
557992
567939
568518
572999
573083
573871
596228
601519
624191
625771
628094
628096
628097
629021
630830
636530
636801
663551
664476
679372
679379
679387
679389
690934
692818
693502
695125
696593
696594
696596
696598
696607
712568
727325
742363
756981
767018
767025
774688
800415
805654
]
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 (7446 , 282649 , 381885 , 381956 , 388281 , 412180 , 412814 , 416522 , 416683 , 416696 , 422879 , 425875 , 440079 , 441111 , 443245 , 445206 , 449060 , 452644 , 456162 , 458094 , 459503 , 484879 , 490854 , 492222 , 496585 , 501653 , 504078 , 513160 , 524725 , 538192 , 538221 , 557992 , 567939 , 568518 , 572999 , 573083 , 573871 , 596228 , 601519 , 624191 , 625771 , 628094 , 628096 , 628097 , 629021 , 630830 , 636530 , 636801 , 663551 , 664476 , 679372 , 679379 , 679387 , 679389 , 690934 , 692818 , 693502 , 695125 , 696593 , 696594 , 696596 , 696598 , 696607 , 712568 , 727325 , 742363 , 756981 , 767018 , 767025 , 774688 , 800415 , 805654 );
Copy