3
12.44 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
626858
436391
579215
631612
445712
447106
540273
588551
524298
444779
644047
420761
570705
578233
570717
765752
709316
803596
567536
615029
519538
528748
519642
550634
552372
624990
498766
490002
552846
525452
500839
741542
461090
495937
469182
627722
809466
555106
602697
534670
651561
460082
445891
516669
439628
553673
508596
462679
565243
582697
447265
537209
644065
667975
579546
545601
598190
474706
521173
560195
605762
472531
441022
537207
567757
513573
639258
660306
507872
]
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 (626858 , 436391 , 579215 , 631612 , 445712 , 447106 , 540273 , 588551 , 524298 , 444779 , 644047 , 420761 , 570705 , 578233 , 570717 , 765752 , 709316 , 803596 , 567536 , 615029 , 519538 , 528748 , 519642 , 550634 , 552372 , 624990 , 498766 , 490002 , 552846 , 525452 , 500839 , 741542 , 461090 , 495937 , 469182 , 627722 , 809466 , 555106 , 602697 , 534670 , 651561 , 460082 , 445891 , 516669 , 439628 , 553673 , 508596 , 462679 , 565243 , 582697 , 447265 , 537209 , 644065 , 667975 , 579546 , 545601 , 598190 , 474706 , 521173 , 560195 , 605762 , 472531 , 441022 , 537207 , 567757 , 513573 , 639258 , 660306 , 507872 );
Copy
4
2.62 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
420761
436391
439628
441022
444779
445712
445891
447106
447265
460082
461090
462679
469182
472531
474706
490002
495937
498766
500839
507872
508596
513573
516669
519538
519642
521173
524298
525452
528748
534670
537207
537209
540273
545601
550634
552372
552846
553673
555106
560195
565243
567536
567757
570705
570717
578233
579215
579546
582697
588551
598190
602697
605762
615029
624990
626858
627722
631612
639258
644047
644065
651561
660306
667975
709316
741542
765752
803596
809466
]
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 (420761 , 436391 , 439628 , 441022 , 444779 , 445712 , 445891 , 447106 , 447265 , 460082 , 461090 , 462679 , 469182 , 472531 , 474706 , 490002 , 495937 , 498766 , 500839 , 507872 , 508596 , 513573 , 516669 , 519538 , 519642 , 521173 , 524298 , 525452 , 528748 , 534670 , 537207 , 537209 , 540273 , 545601 , 550634 , 552372 , 552846 , 553673 , 555106 , 560195 , 565243 , 567536 , 567757 , 570705 , 570717 , 578233 , 579215 , 579546 , 582697 , 588551 , 598190 , 602697 , 605762 , 615029 , 624990 , 626858 , 627722 , 631612 , 639258 , 644047 , 644065 , 651561 , 660306 , 667975 , 709316 , 741542 , 765752 , 803596 , 809466 );
Copy
5
77.64 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
420761
436391
439628
441022
444779
445712
445891
447106
447265
460082
461090
462679
469182
472531
474706
490002
495937
498766
500839
507872
508596
513573
516669
519538
519642
521173
524298
525452
528748
534670
537207
537209
540273
545601
550634
552372
552846
553673
555106
560195
565243
567536
567757
570705
570717
578233
579215
579546
582697
588551
598190
602697
605762
615029
624990
626858
627722
631612
639258
644047
644065
651561
660306
667975
709316
741542
765752
803596
809466
]
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 (420761 , 436391 , 439628 , 441022 , 444779 , 445712 , 445891 , 447106 , 447265 , 460082 , 461090 , 462679 , 469182 , 472531 , 474706 , 490002 , 495937 , 498766 , 500839 , 507872 , 508596 , 513573 , 516669 , 519538 , 519642 , 521173 , 524298 , 525452 , 528748 , 534670 , 537207 , 537209 , 540273 , 545601 , 550634 , 552372 , 552846 , 553673 , 555106 , 560195 , 565243 , 567536 , 567757 , 570705 , 570717 , 578233 , 579215 , 579546 , 582697 , 588551 , 598190 , 602697 , 605762 , 615029 , 624990 , 626858 , 627722 , 631612 , 639258 , 644047 , 644065 , 651561 , 660306 , 667975 , 709316 , 741542 , 765752 , 803596 , 809466 );
Copy