3
10.29 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
558126
543872
733160
395719
614056
420925
797499
580280
812324
428062
814142
797768
798638
805906
735436
419370
390147
556415
447560
751138
773438
454817
645871
616188
777191
723731
628168
586651
601795
507177
58701
417609
818283
630215
583982
454879
453750
387228
454778
595986
440634
818160
517566
508783
585428
446942
457891
522868
416794
641642
421045
430704
443430
452066
502644
504536
484298
540984
523863
447481
487729
544461
513603
514674
622248
430561
509879
675321
616350
431080
]
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 (558126 , 543872 , 733160 , 395719 , 614056 , 420925 , 797499 , 580280 , 812324 , 428062 , 814142 , 797768 , 798638 , 805906 , 735436 , 419370 , 390147 , 556415 , 447560 , 751138 , 773438 , 454817 , 645871 , 616188 , 777191 , 723731 , 628168 , 586651 , 601795 , 507177 , 58701 , 417609 , 818283 , 630215 , 583982 , 454879 , 453750 , 387228 , 454778 , 595986 , 440634 , 818160 , 517566 , 508783 , 585428 , 446942 , 457891 , 522868 , 416794 , 641642 , 421045 , 430704 , 443430 , 452066 , 502644 , 504536 , 484298 , 540984 , 523863 , 447481 , 487729 , 544461 , 513603 , 514674 , 622248 , 430561 , 509879 , 675321 , 616350 , 431080 );
Copy
4
2.42 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
58701
387228
390147
395719
416794
417609
419370
420925
421045
428062
430561
430704
431080
440634
443430
446942
447481
447560
452066
453750
454778
454817
454879
457891
484298
487729
502644
504536
507177
508783
509879
513603
514674
517566
522868
523863
540984
543872
544461
556415
558126
580280
583982
585428
586651
595986
601795
614056
616188
616350
622248
628168
630215
641642
645871
675321
723731
733160
735436
751138
773438
777191
797499
797768
798638
805906
812324
814142
818160
818283
]
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 (58701 , 387228 , 390147 , 395719 , 416794 , 417609 , 419370 , 420925 , 421045 , 428062 , 430561 , 430704 , 431080 , 440634 , 443430 , 446942 , 447481 , 447560 , 452066 , 453750 , 454778 , 454817 , 454879 , 457891 , 484298 , 487729 , 502644 , 504536 , 507177 , 508783 , 509879 , 513603 , 514674 , 517566 , 522868 , 523863 , 540984 , 543872 , 544461 , 556415 , 558126 , 580280 , 583982 , 585428 , 586651 , 595986 , 601795 , 614056 , 616188 , 616350 , 622248 , 628168 , 630215 , 641642 , 645871 , 675321 , 723731 , 733160 , 735436 , 751138 , 773438 , 777191 , 797499 , 797768 , 798638 , 805906 , 812324 , 814142 , 818160 , 818283 );
Copy
5
72.30 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
58701
387228
390147
395719
416794
417609
419370
420925
421045
428062
430561
430704
431080
440634
443430
446942
447481
447560
452066
453750
454778
454817
454879
457891
484298
487729
502644
504536
507177
508783
509879
513603
514674
517566
522868
523863
540984
543872
544461
556415
558126
580280
583982
585428
586651
595986
601795
614056
616188
616350
622248
628168
630215
641642
645871
675321
723731
733160
735436
751138
773438
777191
797499
797768
798638
805906
812324
814142
818160
818283
]
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 (58701 , 387228 , 390147 , 395719 , 416794 , 417609 , 419370 , 420925 , 421045 , 428062 , 430561 , 430704 , 431080 , 440634 , 443430 , 446942 , 447481 , 447560 , 452066 , 453750 , 454778 , 454817 , 454879 , 457891 , 484298 , 487729 , 502644 , 504536 , 507177 , 508783 , 509879 , 513603 , 514674 , 517566 , 522868 , 523863 , 540984 , 543872 , 544461 , 556415 , 558126 , 580280 , 583982 , 585428 , 586651 , 595986 , 601795 , 614056 , 616188 , 616350 , 622248 , 628168 , 630215 , 641642 , 645871 , 675321 , 723731 , 733160 , 735436 , 751138 , 773438 , 777191 , 797499 , 797768 , 798638 , 805906 , 812324 , 814142 , 818160 , 818283 );
Copy